Set Application Name in MSBuild Parameters

时光总嘲笑我的痴心妄想 提交于 2019-12-05 05:19:51
manav inder

You should try this

msbuild WebApplication1.csproj /t:Package /p:configuration=release;DeployIISAppPath="what_ever_name_you_want"

You could get more about these keywords in your project file(.csproj), open it in notepad and search for the default name that is setted by VS. and use that parameter in your command line.

Hope this helps.

MS Build Command line parameters : it doesn't look like you can do it from the command line.

But you can do it in your config file - article using a property group

 <PropertyGroup>
     <appname>NewApplicationName</appname>
 </PropertyGroup>

I can't tell exactly what setting it is in the property pages that you are talking about however the syntax will be something like this:

msbuild WebApplication1.csproj /t:Package /p:configuration=release /p:appname=Test

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!