Skip to content

Commit d501da5

Browse files
zentronankithkonda
authored andcommitted
Make sure file version is set during build
1 parent 649175d commit d501da5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.cake

+4
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,15 @@ Task("Build")
7777
MSBuild("./src/Renci.SshNet/Renci.SshNet.csproj", settings => settings
7878
.SetConfiguration(configuration)
7979
.WithProperty("Version", nugetVersion)
80+
.WithProperty("PackageVersion", nugetVersion)
81+
.WithProperty("FileVersion", nugetVersion)
8082
.WithTarget("Build"));
8183

8284
MSBuild("./src/Renci.SshNet.NETCore/Renci.SshNet.NETCore.csproj", settings => settings
8385
.SetConfiguration(configuration)
8486
.WithProperty("Version", nugetVersion)
87+
.WithProperty("PackageVersion", nugetVersion)
88+
.WithProperty("FileVersion", nugetVersion)
8589
.WithTarget("Build"));
8690
});
8791

0 commit comments

Comments
 (0)