-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathMicrosoft.Data.SqlClient.ManualTests.csproj
More file actions
145 lines (131 loc) · 8.61 KB
/
Copy pathMicrosoft.Data.SqlClient.ManualTests.csproj
File metadata and controls
145 lines (131 loc) · 8.61 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<!-- @TODO: Use full assembly name here -->
<AssemblyName>ManualTests</AssemblyName>
<RootNamespace>Microsoft.Data.SqlClient.ManualTests</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 Resources/etc ========================================== -->
<ItemGroup>
<!-- Baseline files for individual test groups -->
<Content Include="SQL\ParameterTest\StreamInputParameter_DebugMode.bsl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>StreamInputParameter_DebugMode.bsl</Link>
</Content>
<Content Include="SQL\ParameterTest\StreamInputParameter_ReleaseMode.bsl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>StreamInputParameter_ReleaseMode.bsl</Link>
</Content>
<Content Include="SQL\ParameterTest\TvpColumnBoundaries.bsl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TvpColumnBoundaries.bsl</Link>
</Content>
<Content Include="SQL\ParameterTest\TvpColumnBoundaries_Azure.bsl">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>TvpColumnBoundaries_Azure.bsl</Link>
</Content>
<Content Include="DDDataTypesTest_Data.xml"
CopyToOutputDirectory="PreserveNewest" />
<!-- Certificate stuff for AE tests -->
<None Update="makepfxcert.ps1"
CopyToOutputDirectory="PreserveNewest" />
<None Update="mismatchedcert.cer"
CopyToOutputDirectory="PreserveNewest" />
<None Update="removecert.ps1"
CopyToOutputDirectory="PreserveNewest" />
<None Update="SQL\ConnectionTestWithSSLCert\GenerateSelfSignedCertificate.ps1"
CopyToOutputDirectory="Always" />
<!-- Runner/Code coverage settings from TestUtilities project -->
<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>
<None Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/tools/Microsoft.Data.SqlClient.TestUtilities/CodeCoverage.runsettings">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Link>CodeCoverage.runsettings</Link>
</None>
</ItemGroup>
<!-- References ====================================================== -->
<!-- Test target references -->
<ItemGroup>
<ProjectReference Include="$(RepoRoot)src/Microsoft.SqlServer.Server/Microsoft.SqlServer.Server.csproj"
Condition="'$(ReferenceType)' != 'Package'" />
<PackageReference Include="Microsoft.SqlServer.Server"
Condition="'$(ReferenceType)' == 'Package'" />
</ItemGroup>
<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'"
Private="true" />
<PackageReference Include="Microsoft.Data.SqlClient"
Condition="'$(ReferenceType)' == 'Package'" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider/src/Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider.csproj" />
<!-- @TODO: Should there be a package mode test for AKV? -->
</ItemGroup>
<!-- References for netfx -->
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<Reference Include="System.Transactions" />
<PackageReference Include="Azure.Identity" />
<PackageReference Include="Microsoft.Bcl.Cryptography" />
<PackageReference Include="System.Memory" />
<PackageReference Include="System.ValueTuple" />
<PackageReference Include="Microsoft.DotNet.XUnitExtensions" />
<PackageReference Include="Microsoft.NET.Test.Sdk" />
<PackageReference Include="Microsoft.SqlServer.Types" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<PackageReference Include="System.ServiceProcess.ServiceController" />
<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/CustomConfigurableRetryLogic/CustomRetryLogicProvider.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Address/Address.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Circle/Circle.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Shapes/Shapes.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Utf8String/Utf8String.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.NET.Test.Sdk" />
<PackageReference Include="Microsoft.SqlServer.Types" />
<PackageReference Include="System.Configuration.ConfigurationManager" />
<PackageReference Include="System.Security.Cryptography.Pkcs" />
<PackageReference Include="System.ServiceProcess.ServiceController" />
<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/TestUdts/Address/Address.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Circle/Circle.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Shapes/Shapes.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/TestUdts/Utf8String/Utf8String.csproj" />
<ProjectReference Include="$(RepoRoot)src/Microsoft.Data.SqlClient/tests/CustomConfigurableRetryLogic/CustomRetryLogicProvider.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>