MSBuild Package Location

When I run MSBuild with the / t: Package option, I want to specify where the folder containing the * .cmd and * .zip files will be output. The _PackageTempDir task displays the entire application without deployment files (* .cmd and * .zip). Is there a way to specify this on the command line?

UPDATE: The OutDir parameter displays more than I need or need.

+4
source share
2 answers

If you installed

<DesktopBuildPackageLocation>c:\foo\MyProject.zip</DesktopBuildPackageLocation> 

you will get a .zip file, a .cmd file and other related output files in c: \ foo.

+3
source

I found that the /p:DesktopBuildPackageLocation=some\package.zip option for MSBuild does not work (it works if specified in pubxml, though).

However, it turns out that setting /p:PackageFileName=some\package.zip works fine. Alternatively, you can use it with the / p: PublishProfile option.

+5
source

Source: https://habr.com/ru/post/1389301/


All Articles