English 中文(简体)
How to Set PublishUrl of ClickOnce Application From OrderLine
原标题:How to Set PublishUrl of ClickOnce Application From CommandLine

我正在研究一项ClickOnce申请。 我正试图通过指挥线公布:

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

问题在于,我要把一些其他财产与配置,如 PublishUrl等。

I ve tried this:

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

这一项目取得了成功,但该项目的产出将抄录在参考文献中。

我如何处理此事? 感谢。

最佳回答

你可以把你想要的任何财产从指挥线上划出,但在这样做之前,你需要在一些文字编辑(注板等)上开立你的文件。 没收你想要掠夺的财产。 如果是的话,它就出版。 将该财产从Csproj档案中删除。

然后,你可以这样做。

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

在你公布之前,你必须清理该项目。

问题回答

改变您的目标

msbuild /target:clean,rebuild,publish

这是因为,如果只使用“波多黎各”目标,就没有将贵重财产列入申请档案。





相关问题
VS 2008 : How to publish with out DLLs?

I have developed a web application in Visual Studio 2008 and want to publish it in to the production server. I see a publish option there.But its producing files with DLL. I dont want to publish only ...

Apache: Deploying a new site to the server

I have a site currently live on a domain. I would like to switch it to a new site, that is currently in a password protected sub directory on this server. I have a "Site Maintenance in Progress" page....

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Pylons deployment questions

I m a beginner with Pylons and I ve mostly developed on my localhost using the built-in web server. I think it s time to start deployment for my personal blog, I have a Debian Lenny server with ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

Need advice on my PHP development solution

Here is how our current php development solution is set up: Each developer work on their local machine. Each developer commit their change to a common SVN server (intranet). A commit hook upload the ...

loading from JAR files during deployment vs development

when i am loading some data into my java program, i usually use FileInputStream. however i deploy the program as a jar file and webstart, so i have to use getRessource() or getRessourceAsStream() to ...

热门标签