-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathMicrosoft.Data.SqlClient.FunctionalTests.csproj
More file actions
110 lines (99 loc) · 6.67 KB
/
Microsoft.Data.SqlClient.FunctionalTests.csproj
File metadata and controls
110 lines (99 loc) · 6.67 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- @TODO: Use full assembly name here -->
<AssemblyName>FunctionalTests</AssemblyName>
<RootNamespace>Microsoft.Data.SqlClient.FunctionalTests</RootNamespace>
<IsTestProject>true</IsTestProject>
</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>
<!-- Links to internal project files ================================= -->
<ItemGroup>
<!-- @TODO: These should be removed -->
<!-- These files are links to internal classes in the MDS project that a collection of -->
<!-- tests directly test. Since InternalsVisibleTo doesn't work with ManualTests (not sure -->
<!-- why, to be honest), the only way to test them within this project is to directly -->
<!-- compile them as part of this project. This is not ideal in the slightest, and they -->
<!-- should ideally be UnitTests if they need to access internals. But detangling these -->
<!-- tests is far beyond the scope of the common project, so it is left as a TODO for now. -->
<Compile Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Packet.cs" />
<Compile Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/TdsParserStateObject.Multiplexer.cs" />
</ItemGroup>
<!-- Embedded resources and content files =========================== -->
<ItemGroup>
<!-- This file applies runtime configuration to .NET Framework that is used by the tests. -->
<None Update="app.config" Condition="'$(TargetFramework)' == 'net462'">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<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>
<!-- If the tests are compiled/running in "Package" mode, the reference to MDS will be to the -->
<!-- nuget package. This enables ensuring the tests run successfully against a fully-packaged -->
<!-- version of MDS. Package mode is specified by setting the build parameter ReferenceType -->
<!-- to "Package". If this is not specified, the build will revert to default behavior of -->
<!-- referencing MDS via the project. -->
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/src/Microsoft.Data.SqlClient.csproj"
Condition="'$(ReferenceType)' != 'Package'" />
<PackageReference Include="Microsoft.Data.SqlClient"
Condition="'$(ReferenceType)' == 'Package'" />
</ItemGroup>
<!-- References for netframework -->
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<Reference Include="System.Transactions" />
<PackageReference Include="Azure.Identity" />
<PackageReference Include="Microsoft.Bcl.Cryptography" />
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.SqlServer.Types" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="System.Buffers" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<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/ManualTests/SQL/UdtTest/UDTs/Address/Address.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/Microsoft.Data.SqlClient.TestUtilities.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="Azure.Identity" />
<PackageReference Include="Microsoft.Bcl.Cryptography" />
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Microsoft.Extensions.Hosting" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.SqlServer.Types" />
<PackageReference Include="Newtonsoft.Json" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="System.Data.Odbc" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<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/ManualTests/SQL/UdtTest/UDTs/Address/Address.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/Microsoft.Data.SqlClient.TestUtilities.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>