Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Application Name in MSBuild Parameters

I am deploying my web application from command line using this

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.

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.

Thanks

like image 685
Manvinder Avatar asked May 16 '12 07:05

Manvinder


Video Answer


1 Answers

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.

like image 182
manav inder Avatar answered Nov 12 '22 16:11

manav inder