diff options
Diffstat (limited to 'Directory.Build.targets')
-rw-r--r-- | Directory.Build.targets | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Directory.Build.targets b/Directory.Build.targets index e8bb87918af..764d12bb822 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -5,13 +5,11 @@ tell Microsoft.Common.targets not to import Directory.Build.targets again --> <ImportDirectoryBuildTargets>false</ImportDirectoryBuildTargets> - - <EnableNETAnalyzers Condition="'$(EnableAnalyzers)' != 'true'">false</EnableNETAnalyzers> </PropertyGroup> + <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" /> <Import Project="$(RepositoryEngineeringDir)liveBuilds.targets" /> <Import Project="$(RepositoryEngineeringDir)python.targets" /> - <Import Project="Sdk.targets" Sdk="Microsoft.DotNet.Arcade.Sdk" Condition="'$(SkipImportArcadeSdkFromRoot)' != 'true'" /> <PropertyGroup> <!-- @@ -19,6 +17,12 @@ unconditionally in Microsoft.NETCoreSdk.BundledVersions.props. --> <NETCoreAppMaximumVersion>$(MajorVersion).$(MinorVersion)</NETCoreAppMaximumVersion> + <EnableNETAnalyzers Condition="'$(EnableAnalyzers)' != 'true'">false</EnableNETAnalyzers> + <!-- SDK sets product to assembly but we want it to be our product name --> + <Product>Microsoft%AE .NET</Product> + <!-- Use the .NET product branding version for informational version description --> + <InformationalVersion Condition="'$(InformationalVersion)' == '' and '$(VersionSuffix)' == ''">$(ProductVersion)</InformationalVersion> + <InformationalVersion Condition="'$(InformationalVersion)' == '' and '$(VersionSuffix)' != ''">$(ProductVersion)-$(VersionSuffix)</InformationalVersion> </PropertyGroup> <!-- Packaging --> |