-
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Directory.Build.props
37 lines (33 loc) · 1.45 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
34
35
36
37
<Project>
<PropertyGroup>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
<ImplicitUsings>enable</ImplicitUsings>
<EnablePackageValidation>true</EnablePackageValidation>
<LangVersion>12.0</LangVersion>
<NoWarn>$(NoWarn);IDE1006;IDE0063;CS1998</NoWarn>
<Nullable>enable</Nullable>
<Authors>Daniel Weber</Authors>
<Company>ExRam Innovations GmbH</Company>
<Copyright>©2017-2019 ExRam EDV GmbH & Co. KG, 2020 ExRam Innovations GmbH</Copyright>
<PackageIcon>icon.png</PackageIcon>
<DefineConstants>$(SolutionName.Replace('.', '_'));$(DefineConstants)</DefineConstants>
</PropertyGroup>
<PropertyGroup>
<GitRoot>$(SolutionDir)\.git\HEAD</GitRoot>
<GitBranch Condition="Exists($(GitRoot))">$([System.IO.File]::ReadAlltext($(GitRoot)).Replace('ref: refs/heads/', '').Trim())</GitBranch>
</PropertyGroup>
<PropertyGroup Condition="!$(MSBuildProjectName.StartsWith('$(SolutionName)'))">
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup Condition="'$(IsPackable)' == 'true'">
<None Include="$(MSBuildThisFileDirectory)assets\$(PackageIcon)">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Nerdbank.GitVersioning" PrivateAssets="All" />
</ItemGroup>
</Project>