English 中文(简体)
MSBuild 参数中的应用名称
原标题:Set Application Name in MSBuild Parameters

我正在利用这一方式从指挥线上部署我的网络应用程序。

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

该公司进行细微的工作,但应用名称与在项目环境中使用的名称相同。

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”

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.

希望这一帮助。

问题回答

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=《





相关问题
Command Line Parameters

I m trying to add my file in Visual Studio as command line parameters. I know my code works since when I use fopen("whole path here", "r"), it runs. I then add the file as a command line parameter ...

Read from File, or STDIN

I ve written a command line utility that uses getopt for parsing arguments given on the command line. I would also like to have a filename be an optional argument, such as it is in other utilities ...

R - capturing elements of R output into text files

I am trying to run an analysis by invoking R through the command line as follows: R --no-save < SampleProgram.R > SampleProgram.opt For example, consider the simple R program below: mydata =...

热门标签