在MSBuild参数中设置应用程序名称 [英] Set Application Name in MSBuild Parameters

查看:128
本文介绍了在MSBuild参数中设置应用程序名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用此


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

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

它工作正常,但应用程序部署与在项目设置页中使用的相同的名称。

It works fine, but the application deployed with the same name that is using in project settings page.

我想使用相同的命令行设置部署的应用程序的名称。
在msbuild中有任何参数可以这么做或任何其他方法。

I want to set the name of deployed application using same command line. Is there any parameter in msbuild to do so or any other approach.

感谢

推荐答案

您应该尝试这个


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

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

您可以在项目文件(.csproj) ,在记事本中打开它并搜索由VS设置的默认名称。并在命令行中使用该参数。

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.

希望这有助于。

这篇关于在MSBuild参数中设置应用程序名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆