diff --git a/build.cake b/build.cake
index e96659f..b494ee0 100644
--- a/build.cake
+++ b/build.cake
@@ -95,6 +95,7 @@ Task("Build")
.SetConfiguration(configuration)
.SetPlatformTarget(PlatformTarget.MSIL)
.WithProperty("TreatWarningsAsErrors", "true")
+ .WithProperty("Version", version)
.SetVerbosity(Verbosity.Minimal)
.UseToolVersion(MSBuildToolVersion.VS2017)
);
@@ -103,6 +104,7 @@ Task("Build")
.SetConfiguration(configuration)
.SetPlatformTarget(PlatformTarget.x86)
.WithProperty("TreatWarningsAsErrors", "true")
+ .WithProperty("Version", version)
.WithProperty("AppxPackageSigningEnabled", "false")
.SetVerbosity(Verbosity.Minimal)
.UseToolVersion(MSBuildToolVersion.VS2017)
@@ -121,6 +123,7 @@ Task("Package")
.SetConfiguration(configuration)
.SetPlatformTarget(PlatformTarget.MSIL)
.WithProperty("TreatWarningsAsErrors", "true")
+ .WithProperty("Version", version)
.WithTarget("Pack")
.SetVerbosity(Verbosity.Minimal)
.UseToolVersion(MSBuildToolVersion.VS2017)
diff --git a/src/nunit.xamarin/nunit.xamarin.csproj b/src/nunit.xamarin/nunit.xamarin.csproj
index ede3519..73443d2 100644
--- a/src/nunit.xamarin/nunit.xamarin.csproj
+++ b/src/nunit.xamarin/nunit.xamarin.csproj
@@ -7,7 +7,7 @@