Răsfoiți Sursa

Fix consumption of NBGV version properties in build (#1544)

The last release was originally missing the tag in the release notes link
Rob Hague 10 luni în urmă
părinte
comite
d96b9ebc32
1 a modificat fișierele cu 7 adăugiri și 1 ștergeri
  1. 7 1
      src/Renci.SshNet/Renci.SshNet.csproj

+ 7 - 1
src/Renci.SshNet/Renci.SshNet.csproj

@@ -18,7 +18,6 @@
     <PackageIcon>SS-NET-icon-h500.png</PackageIcon>
     <PackageReadmeFile>README.md</PackageReadmeFile>
     <PackageTags>ssh; scp; sftp</PackageTags>
-    <PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
     <IncludeSymbols>True</IncludeSymbols>
     <SymbolPackageFormat>snupkg</SymbolPackageFormat>
     <NBGV_ThisAssemblyIncludesPackageVersion>true</NBGV_ThisAssemblyIncludesPackageVersion>
@@ -26,6 +25,13 @@
     <PublishRepositoryUrl>true</PublishRepositoryUrl>
   </PropertyGroup>
 
+  <Target Name="SetVersionProperties" BeforeTargets="Build" DependsOnTargets="GetBuildVersion">
+    <!-- For properties which depend on those set by NBGV -->
+    <PropertyGroup>
+      <PackageReleaseNotes>https://github.com/sshnet/SSH.NET/releases/tag/$(Version)</PackageReleaseNotes>
+    </PropertyGroup>
+  </Target>
+    
   <PropertyGroup Condition="'$(CI)' != ''">
     <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
   </PropertyGroup>