-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathMicrosoft.Data.SqlClient.FunctionalTests.csproj
More file actions
113 lines (104 loc) · 6.8 KB
/
Copy pathMicrosoft.Data.SqlClient.FunctionalTests.csproj
File metadata and controls
113 lines (104 loc) · 6.8 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
<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>
<!-- 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/Common/MultipartIdentifier.cs" />
<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 sets some configuration setting that only apply to netfx. It cannot be #if -->
<!-- included into the project, so it must be included via a condition attribute. -->
<None Update="app.config" Condition="'$(TargetFramework)' == 'net462'">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<Content Include="$(TestsPath)tools/Microsoft.Data.SqlClient.TestUtilities/xunit.runner.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<TargetPath>xunit.runner.json</TargetPath>
</Content>
</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.Data.SqlClient.SNI"
Condition="'$(ReferenceType)' != 'Package'" />
<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"
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
<PackageReference Include="xunit.runner.visualstudio"
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
<ProjectReference Include="$(TestsPath)Common\Microsoft.Data.SqlClient.TestCommon.csproj" />
<ProjectReference Include="$(TestsPath)ManualTests\SQL\UdtTest\UDTs\Address\Address.csproj" />
<ProjectReference Include="$(TestsPath)tools\Microsoft.Data.SqlClient.TestUtilities\Microsoft.Data.SqlClient.TestUtilities.csproj" />
<ProjectReference Include="$(TestsPath)tools\TDS\TDS\TDS.csproj" />
<ProjectReference Include="$(TestsPath)tools\TDS\TDS.EndPoint\TDS.EndPoint.csproj" />
<ProjectReference Include="$(TestsPath)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.Data.SqlClient.SNI.runtime"
Condition="'$(ReferenceType)' != 'Package'" />
<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"
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
<PackageReference Include="xunit.runner.visualstudio"
IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"
PrivateAssets="all" />
<ProjectReference Include="$(TestsPath)Common\Microsoft.Data.SqlClient.TestCommon.csproj" />
<ProjectReference Include="$(TestsPath)ManualTests\SQL\UdtTest\UDTs\Address\Address.csproj" />
<ProjectReference Include="$(TestsPath)tools\Microsoft.Data.SqlClient.TestUtilities\Microsoft.Data.SqlClient.TestUtilities.csproj" />
<ProjectReference Include="$(TestsPath)tools\TDS\TDS\TDS.csproj" />
<ProjectReference Include="$(TestsPath)tools\TDS\TDS.EndPoint\TDS.EndPoint.csproj" />
<ProjectReference Include="$(TestsPath)tools\TDS\TDS.Servers\TDS.Servers.csproj" />
</ItemGroup>
</Project>