-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathMicrosoft.Data.SqlClient.UnitTests.csproj
More file actions
88 lines (78 loc) · 4.31 KB
/
Microsoft.Data.SqlClient.UnitTests.csproj
File metadata and controls
88 lines (78 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- @TODO: Use full assembly name here -->
<AssemblyName>UnitTests</AssemblyName>
<RootNamespace />
<IsTestProject>true</IsTestProject>
<Nullable>enable</Nullable>
</PropertyGroup>
<!-- Target Frameworks =============================================== -->
<PropertyGroup>
<TargetFrameworks>net8.0;net9.0;net10.0</TargetFrameworks>
<!--
We cannot build netfx unless we are building for Windows. Thus, we will only add netfx if we
are building for Windows.
-->
<TargetFrameworks Condition="'$(OS)' == 'Windows_NT'">$(TargetFrameworks);net462</TargetFrameworks>
</PropertyGroup>
<!-- Embedded resources and content files =========================== -->
<ItemGroup>
<EmbeddedResource Update="Resources.resx">
<LogicalName>Microsoft.Data.SqlClient.UnitTests.Resources.resources</LogicalName>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<Compile Update="Resources.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>xunit.runner.json</Link>
</None>
</ItemGroup>
<!-- References ====================================================== -->
<!-- Test target reference -->
<ItemGroup>
<!--
The Unit Test project only supports ReferenceType = Project since it needs access to the
internals of sibling packages.
-->
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.SqlServer.Server/Microsoft.SqlServer.Server.csproj" />
</ItemGroup>
<Target Name="ValidateReferenceType"
BeforeTargets="Restore;PrepareForBuild"
Condition="'$(ReferenceType)' != 'Project'">
<Error Text="Microsoft.Data.SqlClient.UnitTests.csproj only supports ReferenceType=Project." />
</Target>
<!-- References for netframework -->
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<Reference Include="System.Transactions" />
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.console" ExcludeAssets="compile" />
<PackageReference Include="xunit.runner.visualstudio" ExcludeAssets="compile" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\Common\Microsoft.Data.SqlClient.TestCommon.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS\TDS.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS.EndPoint\TDS.EndPoint.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS.Servers\TDS.Servers.csproj" />
</ItemGroup>
<!-- References for netcore -->
<ItemGroup Condition="'$(TargetFramework)' != 'net462'">
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="xunit" />
<PackageReference Include="xunit.runner.console" ExcludeAssets="compile" />
<PackageReference Include="xunit.runner.visualstudio" ExcludeAssets="compile" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\Common\Microsoft.Data.SqlClient.TestCommon.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS\TDS.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS.EndPoint\TDS.EndPoint.csproj" />
<ProjectReference Include="$(RepoRoot)src\Microsoft.Data.SqlClient\tests\tools\TDS\TDS.Servers\TDS.Servers.csproj" />
</ItemGroup>
</Project>