Inject the version
This commit is contained in:
Родитель
b7e61fde7b
Коммит
bacb3d4a2c
|
@ -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)
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<Copyright>Copyright (C) 2018, Rob Prouse</Copyright>
|
||||
<Title>NUnit.Xamarin</Title>
|
||||
<Description>NUnit 3 Test Runner for Xamarin</Description>
|
||||
<Version>3.10.1</Version>
|
||||
<Version Condition="'$(Version)' == ''">3.10.1</Version>
|
||||
|
||||
<!-- NuGet Package Info -->
|
||||
<PackageId>nunit.xamarin</PackageId>
|
||||
|
|
Загрузка…
Ссылка в новой задаче