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

Commented Issue: Pack command does not pass properties specified in the "-Properties" switch when using the "-Build" switch [2911]

$
0
0
When using "nuget pack MyProject.csproj -Properties Configuration=Release", the release dll is picked up successfully. However, when using "nuget pack MyProject.csproj -Build -Properties Configuration=Release", then the dll gets built and packed in its default configuration (which, in that case, is Debug).

I made a reproduction for that bug in a zip file - you would just have to run the NugetPackBuildRelease.bat file in order to reproduce the bug. I believe that the underlying issue is the one in the title of that ticket - that none of the properties specified in nuget pack are passed to MSBuild.

This bug is annoying because it means that the "-Build" switch is ultimately suited only to the simplest build processes, which do not use any properties - any more evolved use case would require direct use of MSBuild.
Comments: We actually ran into this bug quite recently with the NuGet.Server package that we produce. We do pass the property to MsBuild, but I think the way we assign it isn't correct.

Viewing all articles
Browse latest Browse all 7612

Trending Articles



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