properties/common.props (37 lines of code) (raw):
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<NoWarn></NoWarn>
<!-- Don't append TargetFramework to output path. -->
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>
<!-- Cls Compliant -->
<PropertyGroup>
<AssemblyClsCompliant>true</AssemblyClsCompliant>
</PropertyGroup>
<!-- set DebugType to full -->
<PropertyGroup>
<DebugType>full</DebugType>
</PropertyGroup>
<!-- Enable /highentropyva flag -->
<PropertyGroup>
<HighEntropyVA>true</HighEntropyVA>
</PropertyGroup>
<!-- Set AllowUnsafeBlocks to false -->
<PropertyGroup>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
</PropertyGroup>
<!-- Signing -->
<PropertyGroup>
<SignAssembly>true</SignAssembly>
<PublicSign>true</PublicSign>
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)MSSharedLibKey.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<!-- Enable sourcelink https://docs.microsoft.com/dotnet/standard/library-guidance/sourcelink -->
<PropertyGroup>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.*" PrivateAssets="All"/>
</ItemGroup>
<!-- Enable Deterministic Builds for github actions -->
<PropertyGroup Condition="'$(GITHUB_ACTIONS)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
</PropertyGroup>
</Project>