How to install PublishUrl ClickOnce application from the command line

I am working on a ClickOnce application. I am trying to publish it from the command line using this:

msbuild Project.csproj /t:Publish /p:configuration=release;

The problem is that I want to set some other properties along with the configuration, for example, "PublishUrl" etc.

I tried this:

msbuild Project.csproj /t:Publish /p:configuration=release;publishurl="\\sdmm\publish\"

It is successfully collected, but the output from this project will be copied to the debug folder of the application in the app.publish folder.

How do I handle this thing? Thank you

+6
source share
2 answers

, , , .csproj - ( ..). , . URL- . csproj.

msbuild /target:clean,publish /p:publishurl=c:\publish_location\

, .

+10

msbuild/target: , ,

, (PublishUrl), , "".

+7

All Articles