diff --git a/build/_build/Build.cs b/build/_build/Build.cs index 2552e0b..4fe9fc2 100644 --- a/build/_build/Build.cs +++ b/build/_build/Build.cs @@ -95,6 +95,7 @@ class Build : NukeBuild () => DotNetTasks.DotNetRestore( x => x .SetProjectFile(MovereSlnPath) + .AddProperty("Configuration", Configuration) .AddProperty("PackageVersionSuffix", PackageVersionSuffix) ) ); @@ -105,6 +106,7 @@ class Build : NukeBuild () => DotNetTasks.DotNetBuild( x => x .SetProjectFile(MovereSlnPath) + .AddProperty("Configuration", Configuration) .AddProperty("PackageVersionSuffix", PackageVersionSuffix) ) ); @@ -112,11 +114,17 @@ class Build : NukeBuild Target Pack => _ => _ .After(Compile) .Executes( - () => DotNetTasks.DotNetPack( + () => + { + DotNetTasks.DotNetPack( x => x .SetProject(MovereSlnPath) + .AddProperty("Configuration", Configuration) .AddProperty("PackageVersionSuffix", PackageVersionSuffix) - ) + ); + Serilog.Log.Information(EnvironmentInfo.GetVariable("CONFIGURATION")); + Serilog.Log.Information(Configuration); + } ); Target PushMyGet => _ => _