Quantcast
Channel: WE MOVED to github.com/nuget. This site is not monitored!
Viewing all articles
Browse latest Browse all 7612

Closed Issue: NuGet.targets does not pass $(Platform) to nuget pack [3307]

$
0
0
I can provide a formal patch, but basically Line 55:

<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties __Configuration=$(Configuration)__ $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>

Needs to become:

<BuildCommand>$(NuGetCommand) pack "$(ProjectPath)" -Properties __"Configuration=$(Configuration);Platform=$(Platform)"__ $(NonInteractiveSwitch) -OutputDirectory "$(PackageOutputDir)" -symbols</BuildCommand>

If I am on the command line and the environment variable Platform is set to x64, but I pass Platform=AnyCPU to msbuild like this

_msbuild OrcaMDF.Core.csproj /p:Platform=AnyCPU /t:Clean;Build_

Then the __nuget pack__ call will use the environment variable value of platform.
Comments: Verified.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>