-
Notifications
You must be signed in to change notification settings - Fork 164
Expand file tree
/
Copy pathDirectory.Build.props
More file actions
55 lines (50 loc) · 2.93 KB
/
Directory.Build.props
File metadata and controls
55 lines (50 loc) · 2.93 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
<Project>
<PropertyGroup>
<AssemblyCompany>Microsoft</AssemblyCompany>
<AssemblyCopyright>© Microsoft Corporation. All rights reserved.</AssemblyCopyright>
<Company>Microsoft</Company>
<Product>Microsoft Sql Tools</Product>
<Authors>Microsoft</Authors>
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
<HighEntropyVA>true</HighEntropyVA>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<RootDir>$(MSBuildThisFileDirectory)</RootDir>
<!-- Defaults-->
<!-- The revision version is currently generated by the release stage, which runs after build. So until
that can be refactored just set to 0/99 here since it doesn't need to exactly match the release version
(especially with the commit hash being embedded in)
-->
<Revision Condition="$(Patch) != ''">0</Revision>
<Revision Condition="$(Patch) == ''">99</Revision>
<Major Condition="$(Major) == ''">99</Major>
<Minor Condition="$(Minor) == ''">99</Minor>
<Patch Condition="$(Patch) == ''">99</Patch>
<!-- AssemblyVersion should not change for non-major releases. -->
<AssemblyVersion>$(Major).0.0.0</AssemblyVersion>
<Version>$(Major).$(Minor).$(Patch).$(Revision)</Version>
<FileVersion>$(Version)</FileVersion>
<InformationalVersion>$(Version)</InformationalVersion>
<ToolsServiceTargetRuntimes>win-x64;win-x86;win-arm64;osx-x64;osx-arm64;linux-x64;linux-arm64</ToolsServiceTargetRuntimes>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<EnableNETAnalyzers>true</EnableNETAnalyzers>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<!-- This is required for IDE0005 to fail the build https://github.com/dotnet/roslyn/issues/41640 -->
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Nullable>enable</Nullable>
<!-- NU1902: Microsoft.Rest.ClientRuntime has a known moderate vulnerability; it is deprecated and
tracked for migration to Azure.Core (see Packages.props) -->
<!-- NETSDK1187: TransactSql.ScriptDom.Nrt uses non-standard locale casing (zh-HANS/zh-HANT); third-party package issue -->
<!-- CS7035: FileVersion uses a date-based Patch (e.g. 20260417) that exceeds the net472 UInt16 limit of 65535 -->
<NoWarn>$(NoWarn);NU1902;NETSDK1187;CS7035</NoWarn>
</PropertyGroup>
<!-- SourceLink: allow SSH config alias 'github.com-work' to be recognized as a GitHub host -->
<ItemGroup>
<SourceLinkGitHubHost Include="github.com-work" ContentUrl="https://raw.githubusercontent.com" />
</ItemGroup>
<!-- For official builds we want to set this so that "official build" settings such as normalized source
paths are applied. https://learn.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props#continuousintegrationbuild
-->
<PropertyGroup Condition="'$(TF_BUILD)' == 'true' Or '$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>