Skip to content

VS2017 SDK-based build support

Compare
Choose a tag to compare
@AArnott AArnott released this 17 Dec 19:18
· 2316 commits to main since this release

Nerdbank.GitVersioning can successfully perform its functions on the SDK builds of .NET assemblies.

It can't yet influence the version of nuget packages that are built with the new SDK's Pack target. #93 tracks progress on this.

Install from NuGet

For folks not familiar with these new project types, they look like this:

<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">
  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp1.0;net46</TargetFrameworks>
    <RuntimeIdentifier>win7-x86</RuntimeIdentifier>
  </PropertyGroup>
  <ItemGroup>
    <Compile Include="**\*.cs" />
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Nerdbank.GitVersioning" Version="1.5.61" />
    <PackageReference Include="Microsoft.NETCore.App" Condition=" '$(TargetFramework)' == 'netcoreapp1.0' " Version="1.0.1" />
  </ItemGroup>
</Project>