From bacb3d4a2c2b2451a48ac7b367fe09ca7063d219 Mon Sep 17 00:00:00 2001 From: Rob Prouse Date: Mon, 2 Apr 2018 20:46:16 -0400 Subject: [PATCH] Inject the version --- build.cake | 3 +++ src/nunit.xamarin/nunit.xamarin.csproj | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ Copyright (C) 2018, Rob Prouse NUnit.Xamarin NUnit 3 Test Runner for Xamarin - 3.10.1 + 3.10.1 nunit.xamarin