diff --git a/build.cake b/build.cake index 5f7f324fe4..ef41ddff64 100644 --- a/build.cake +++ b/build.cake @@ -85,6 +85,13 @@ void DotNetCoreBuild(Parameters parameters) var settings = new DotNetCoreBuildSettings { Configuration = parameters.Configuration, + MSBuildSettings = new DotNetCoreMSBuildSettings + { + Properties = + { + { "PackageVersion", new [] { parameters.Version } } + } + } }; DotNetCoreBuild(parameters.MSBuildSolution, settings); @@ -99,6 +106,7 @@ Task("Build-Impl") settings.SetConfiguration(data.Configuration); settings.SetVerbosity(Verbosity.Minimal); settings.WithProperty("iOSRoslynPathHackRequired", "true"); + settings.WithProperty("PackageVersion", data.Version); settings.UseToolVersion(MSBuildToolVersion.VS2017); settings.WithRestore(); }); @@ -211,6 +219,13 @@ void DotNetCorePack(Parameters parameters) var settings = new DotNetCorePackSettings { Configuration = parameters.Configuration, + MSBuildSettings = new DotNetCoreMSBuildSettings + { + Properties = + { + { "PackageVersion", new [] { parameters.Version } } + } + } }; DotNetCorePack(parameters.MSBuildSolution, settings); @@ -225,6 +240,7 @@ Task("Create-NuGet-Packages-Impl") settings.SetConfiguration(data.Configuration); settings.SetVerbosity(Verbosity.Minimal); settings.WithProperty("iOSRoslynPathHackRequired", "true"); + settings.WithProperty("PackageVersion", data.Version); settings.UseToolVersion(MSBuildToolVersion.VS2017); settings.WithRestore(); settings.WithTarget("Pack"); diff --git a/dirs.proj b/dirs.proj index cd3faf07a6..0f24632b72 100644 --- a/dirs.proj +++ b/dirs.proj @@ -23,13 +23,4 @@ - - - - diff --git a/global.json b/global.json index 4c8e07c2cb..d11e78bd7f 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "msbuild-sdks": { - "Microsoft.Build.Traversal": "1.0.41", + "Microsoft.Build.Traversal": "1.0.43", "MSBuild.Sdk.Extras": "1.6.46", "AggregatePackage.NuGet.Sdk" : "0.1.12" }