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.
<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.