This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
/
Directory.Build.props
33 lines (26 loc) · 1.7 KB
/
Directory.Build.props
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
<Project>
<PropertyGroup>
<GlobalConfigurationPropsFile>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)_build\Configuration.props'))</GlobalConfigurationPropsFile>
<ProjectRelativePath>$([MSBuild]::MakeRelative($(MSBuildThisFileDirectory), $(MSBuildProjectFullPath)))</ProjectRelativePath>
<!-- Do not apply properties that can influence MSBuild-builtin-defaults for projects we don't own (proppy) -->
<ShouldApplyProjectProperties>true</ShouldApplyProjectProperties>
<ShouldApplyProjectProperties Condition="$(ProjectRelativePath.StartsWith('External'))">false</ShouldApplyProjectProperties>
</PropertyGroup>
<Import
Condition="Exists('$(GlobalConfigurationPropsFile)')"
Project="$(GlobalConfigurationPropsFile)"/>
<Import Project="build\Environment.props"/>
<PropertyGroup Condition="$(ShouldApplyProjectProperties) And '$(MSBuildProjectExtension)' == '.csproj'">
<LangVersion>latest</LangVersion>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<GenerateAssemblyCompanyAttribute>false</GenerateAssemblyCompanyAttribute>
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<!-- for .NET Core projects, but should be fine to leave set for .NET Framework -->
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
</PropertyGroup>
<ItemGroup Condition="$(ShouldApplyProjectProperties) And '$(MSBuildProjectExtension)' == '.csproj'">
<Compile Include="$(MSBuildThisFileDirectory)build\ProductAssemblyInfo.cs"/>
</ItemGroup>
</Project>