|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <Project ToolsVersion="Current" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
3 | 3 | <PropertyGroup> |
4 | | - <TargetsWindows Condition="'$(OS)' == 'Windows_NT' AND '$(OSGroup)' == ''">true</TargetsWindows> |
5 | | - <TargetsWindows Condition="'$(OS)' != 'Windows_NT' AND '$(OSGroup)' == ''">false</TargetsWindows> |
6 | | - <TargetsWindows Condition="'$(OSGroup)' == 'Windows_NT'">true</TargetsWindows> |
7 | | - <TargetsUnix Condition="'$(OS)' == 'Unix' AND '$(OSGroup)' == ''">true</TargetsUnix> |
8 | | - <TargetsUnix Condition="'$(OS)' != 'Unix' AND '$(OSGroup)' == ''">false</TargetsUnix> |
9 | | - <TargetsUnix Condition="'$(OSGroup)' == 'Unix'">true</TargetsUnix> |
10 | | - <TargetsAnyOS Condition="'$(OSGroup)' == 'AnyOS'">true</TargetsAnyOS> |
11 | | - <IsSourceProject Condition="$([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))">true</IsSourceProject> |
12 | 4 | <!-- |
13 | 5 | "ReferenceType" property supports below options: |
14 | 6 |
|
|
19 | 11 | --> |
20 | 12 | <ReferenceType Condition="'$(ReferenceType)' == ''">Project</ReferenceType> |
21 | 13 | </PropertyGroup> |
| 14 | + |
| 15 | + <!-- @TODO: What is this? --> |
22 | 16 | <PropertyGroup Condition="$(BuildForRelease) == 'true'"> |
23 | 17 | <TargetFrameworkMonikerAssemblyAttributesPath>$([System.IO.Path]::Combine('$(IntermediateOutputPath)','$(TargetFrameworkMoniker).AssemblyAttributes$(DefaultLanguageSourceExtension)'))</TargetFrameworkMonikerAssemblyAttributesPath> |
24 | 18 | </PropertyGroup> |
| 19 | + |
25 | 20 | <ItemGroup Condition="$(BuildForRelease) == 'true'"> |
26 | 21 | <SourceRoot Include="$(MSBuildThisFileDirectory)/" /> |
27 | 22 | <EmbeddedFiles Include="$(GeneratedAssemblyInfoFile)" /> |
28 | 23 | </ItemGroup> |
| 24 | + |
29 | 25 | <PropertyGroup Condition="$(Configuration.Contains('Debug'))"> |
30 | 26 | <DefineConstants>$(DefineConstants);DEBUG</DefineConstants> |
31 | 27 | </PropertyGroup> |
32 | 28 | <PropertyGroup> |
33 | 29 | <ProjectDir>$(MSBuildThisFileDirectory)</ProjectDir> |
34 | 30 | <RepoRoot>$(ProjectDir)..\</RepoRoot> |
35 | 31 | <Artifacts>$(RepoRoot)artifacts\$(ReferenceType)\</Artifacts> |
36 | | - <ToolsArtifactsDir Condition="'$(ToolsArtifactsDir)'==''">$(Artifacts)tools\</ToolsArtifactsDir> |
37 | | - <ManagedSourceCode>$(ProjectDir)Microsoft.Data.SqlClient\</ManagedSourceCode> |
38 | | - <SqlServerSourceCode>$(ProjectDir)Microsoft.SqlServer.Server\</SqlServerSourceCode> |
39 | | - <NetCoreSource>$(ManagedSourceCode)netcore\</NetCoreSource> |
40 | | - <NetCoreResources>$(ManagedSourceCode)src\Resources\</NetCoreResources> |
41 | | - <ResxFileName>Strings</ResxFileName> |
42 | | - <ResourceFileName>SqlClient.Resources.$(ResxFileName)</ResourceFileName> |
43 | | - <GeneratedSourceFileName>$(ResxFileName).ResourceNames.cs</GeneratedSourceFileName> |
44 | | - <NetFxSource>$(ManagedSourceCode)netfx\</NetFxSource> |
45 | | - <NetFxResources>$(ManagedSourceCode)src\Resources\</NetFxResources> |
46 | | - <AddOnsPath>$(ManagedSourceCode)add-ons\</AddOnsPath> |
47 | | - <SqlServerSource>$(RepoRoot)src\Microsoft.SqlServer.Server\</SqlServerSource> |
48 | | - <CommonsourceRoot>$(RepoRoot)src\Microsoft.Data.SqlClient\src\</CommonsourceRoot> |
49 | | - <ObjFolder>$(Artifacts)obj\</ObjFolder> |
50 | | - <CommonPath>$(NetCoreSource)src\Common\src</CommonPath> |
51 | | - <CommonTestPath>$(NetCoreSource)src\Common\tests</CommonTestPath> |
52 | | - <TestsPath>$(ProjectDir)Microsoft.Data.SqlClient/tests/</TestsPath> |
53 | | - <BinFolder Condition="'$(TargetsWindows)' == 'true'">$(Artifacts)bin\Windows_NT\</BinFolder> |
54 | | - <BinFolder Condition="'$(TargetsAnyOS)' == 'true'">$(Artifacts)bin\AnyOS\</BinFolder> |
55 | | - <BinFolder Condition="'$(TargetsUnix)' == 'true'">$(Artifacts)bin\Unix\</BinFolder> |
| 32 | + |
56 | 33 | <ToolsDir Condition="'$(ToolsDir)'==''">$(RepoRoot)tools\</ToolsDir> |
57 | | - <GenAPISrcDir Condition="'$(GenAPISrcDir)'==''">$(ToolsDir)GenAPI\</GenAPISrcDir> |
58 | 34 | <PackagesDir Condition="'$(PackagesDir)'==''">$(RepoRoot)packages\</PackagesDir> |
59 | | - <NuGetRoot Condition="'$(NuGetRoot)' == ''">$(RepoRoot).nuget\</NuGetRoot> |
60 | | - <NuGetCmd>$(NuGetRoot)nuget.exe</NuGetCmd> |
61 | 35 | <!-- Respect environment variable for the .NET install directory if set; otherwise, use the current default location --> |
62 | 36 | <BuildSimulator Condition="'$(BuildSimulator)' != 'true'">false</BuildSimulator> |
63 | 37 | </PropertyGroup> |
64 | 38 |
|
65 | | - <!-- Add user-supplied define constants. --> |
66 | | - <PropertyGroup Condition="'$(UserDefinedConstants)' != ''"> |
67 | | - <DefineConstants>$(DefineConstants);$(UserDefinedConstants)</DefineConstants> |
68 | | - </PropertyGroup> |
69 | | - |
| 39 | + <!-- @TODO: This isn't being set anywhere --> |
70 | 40 | <PropertyGroup Condition="'$(BuildSimulator)' == 'true'"> |
71 | 41 | <DefineConstants>$(DefineConstants);ENCLAVE_SIMULATOR</DefineConstants> |
72 | 42 | </PropertyGroup> |
|
98 | 68 | <TreatWarningsAsErrors>true</TreatWarningsAsErrors> |
99 | 69 |
|
100 | 70 | <!-- |
101 | | - There may be a few specific warnings that should _not_ be considered an |
102 | | - error. This list should be used sparingly to avoid important warnings |
103 | | - being ignored. |
| 71 | + There may be a few specific warnings that should _not_ be considered an error. This list |
| 72 | + should be used sparingly to avoid important warnings being ignored. |
104 | 73 | --> |
105 | | - <WarningsNotAsErrors></WarningsNotAsErrors> |
| 74 | + <WarningsNotAsErrors /> |
106 | 75 |
|
107 | 76 | <!-- |
108 | | - If a build is failing due to vulnerable dependencies, you may temporarily |
109 | | - uncomment the following line to treat the audit warnings as non-errors. |
110 | | - This should only be done as a temporary measure while addressing the |
111 | | - vulnerable dependencies. See: |
112 | | -
|
| 77 | + If a build is failing due to vulnerable dependencies, you may temporarily uncomment the |
| 78 | + following line to treat the audit warnings as non-errors. This should only be done as a |
| 79 | + temporary measure while addressing the vulnerable dependencies. See: |
113 | 80 | https://learn.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu1901-nu1904 |
114 | 81 | --> |
115 | 82 | <!-- <WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors> --> |
|
126 | 93 | <DefineConstants>$(DefineConstants);STRONG_NAME_SIGNING</DefineConstants> |
127 | 94 | </PropertyGroup> |
128 | 95 |
|
129 | | - <!-- Packaging for source link--> |
| 96 | + <!-- Packaging for source link--> |
130 | 97 | <PropertyGroup> |
131 | 98 | <DebugType>portable</DebugType> |
132 | 99 | <DebugSymbols>true</DebugSymbols> |
|
135 | 102 | <EmbedUnTrackedSources>true</EmbedUnTrackedSources> |
136 | 103 | <DisableSourceLinkTranslation Condition="'$(DisableSourceLinkTranslation)' == ''">false</DisableSourceLinkTranslation> |
137 | 104 | </PropertyGroup> |
138 | | - <PropertyGroup Condition="'$(TF_BUILD)' == 'true'"> |
139 | | - <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild> |
140 | | - </PropertyGroup> |
141 | 105 |
|
142 | 106 | <!-- Provides Version properties --> |
143 | 107 | <Import Project="$(ToolsDir)props\Versions.props" /> |
144 | | - <!-- Provides Tool properties --> |
145 | | - <Import Project="$(ToolsDir)props\Tools.props" /> |
| 108 | + |
146 | 109 | <!-- Provides Build properties --> |
147 | 110 | <Import Project="$(ToolsDir)props\AssemblyInfo.props" /> |
148 | 111 | <Import Project="$(ToolsDir)props\AssemblyRef.props" /> |
|
154 | 117 | </PropertyGroup> |
155 | 118 |
|
156 | 119 | <!-- |
157 | | - We want to use the latest C# language regardless of target framework, |
158 | | - so we explicitly set LangVersion for all targets. |
159 | | -
|
160 | | - We will roll this version forward as new C# language versions are released |
161 | | - and associated with the newest .NET SDK we support. |
| 120 | + We want to use the latest C# language regardless of target framework, so we explicitly set |
| 121 | + LangVersion for all targets. We will roll this version forward as new C# language versions are |
| 122 | + released and associated with the newest .NET SDK we support. |
162 | 123 |
|
163 | 124 | Details here: |
164 | | -
|
165 | 125 | https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/language-versioning |
166 | | -
|
167 | 126 | https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version |
168 | 127 | --> |
169 | 128 | <PropertyGroup> |
170 | | - <!-- The newest .NET SDK we support is .NET 10.0, which uses C# 14 --> |
171 | 129 | <LangVersion>14</LangVersion> |
172 | 130 | </PropertyGroup> |
173 | 131 | </Project> |
0 commit comments