-
Notifications
You must be signed in to change notification settings - Fork 330
Expand file tree
/
Copy pathMicrosoft.Data.SqlClient.TestCommon.csproj
More file actions
54 lines (47 loc) · 2.22 KB
/
Copy pathMicrosoft.Data.SqlClient.TestCommon.csproj
File metadata and controls
54 lines (47 loc) · 2.22 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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<AssemblyName>Microsoft.Data.SqlClient.TestCommon</AssemblyName>
<RootNamespace>Microsoft.Data.SqlClient.TestCommon</RootNamespace>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<!--
This is a shared helper library, not a test project. IsTestProject prevents test adapters
(e.g. dotnet test) from discovering this assembly.
-->
<IsTestProject>false</IsTestProject>
</PropertyGroup>
<!-- Strong name signing ============================================= -->
<!-- Sign with the test key so signed test assemblies can reference this project. -->
<PropertyGroup Condition="'$(TestSigningKeyPath)' != ''">
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>$(TestSigningKeyPath)</AssemblyOriginatorKeyFile>
</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>
<!-- References ====================================================== -->
<!-- Test target reference -->
<ItemGroup>
<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 netfx -->
<ItemGroup Condition="'$(TargetFramework)' == 'net462'">
<PackageReference Include="Azure.Identity" />
<PackageReference Include="Azure.Security.KeyVault.Keys" />
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" />
</ItemGroup>
<!-- References for netcore -->
<ItemGroup Condition="'$(TargetFramework)' != 'net462'">
<PackageReference Include="Azure.Identity" />
<PackageReference Include="Azure.Security.KeyVault.Keys" />
</ItemGroup>
</Project>