Skip to content

Commit d96b9eb

Browse files
authored
Fix consumption of NBGV version properties in build (#1544)
The last release was originally missing the tag in the release notes link
1 parent 021ee99 commit d96b9eb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Renci.SshNet/Renci.SshNet.csproj

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,20 @@
1818
<PackageIcon>SS-NET-icon-h500.png</PackageIcon>
1919
<PackageReadmeFile>README.md</PackageReadmeFile>
2020
<PackageTags>ssh; scp; sftp</PackageTags>
21-
<PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
2221
<IncludeSymbols>True</IncludeSymbols>
2322
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
2423
<NBGV_ThisAssemblyIncludesPackageVersion>true</NBGV_ThisAssemblyIncludesPackageVersion>
2524
<EmbedUntrackedSources>true</EmbedUntrackedSources>
2625
<PublishRepositoryUrl>true</PublishRepositoryUrl>
2726
</PropertyGroup>
2827

28+
<Target Name="SetVersionProperties" BeforeTargets="Build" DependsOnTargets="GetBuildVersion">
29+
<!-- For properties which depend on those set by NBGV -->
30+
<PropertyGroup>
31+
<PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
32+
</PropertyGroup>
33+
</Target>
34+
2935
<PropertyGroup Condition="'$(CI)' != ''">
3036
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
3137
</PropertyGroup>

0 commit comments

Comments
 (0)