Directory.Build.props (22 lines of code) (raw):

<?xml version="1.0" encoding="utf-8"?> <Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup> <SolutionRoot>$([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory), build.bat))</SolutionRoot> <MinVerDefaultPreReleasePhase>canary</MinVerDefaultPreReleasePhase> <MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor> <LangVersion>latest</LangVersion> <TreatWarningsAsErrors>true</TreatWarningsAsErrors> <IsPackable>False</IsPackable> <CheckEolTargetFramework>false</CheckEolTargetFramework> <SignAssembly>true</SignAssembly> <AssemblyOriginatorKeyFile>$(SolutionRoot)\build\keys\keypair.snk</AssemblyOriginatorKeyFile> <DefineConstants Condition="'$(TargetFramework)'=='net461'">$(DefineConstants);FULLFRAMEWORK</DefineConstants> <DefineConstants Condition="$(DefineConstants.Contains(FULLFRAMEWORK)) == False">$(DefineConstants);DOTNETCORE</DefineConstants> </PropertyGroup> <PropertyGroup Condition=""> </PropertyGroup> <ItemGroup> <PackageReference Include="MinVer" Version="4.2.0" PrivateAssets="all" /> <PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies.net461" Version="1.0.3" PrivateAssets="all"/> </ItemGroup> </Project>