I have created a Web Deployment Project in VS 2010 and after creating the deployment package the "IIS Web Application Name" parameter in SetParameters.xml is "Default Web Site/MyProjectWDP". I am unable to find a way to change this value.
If I instead build the deployment package from the Web Application Project itself, the project properties allows this parameter to be preset. However, I need to work with a separate Web Deployment Project so that I can get the asp.net views (.aspx, .ascx,
and .master files) pre=compiled before deployment. In this scenario I can't find any way to set this parameter.
gxclarke
0 Points
2 Posts
How to preset IIS Web Application Name in Web Deployment Project
Jun 13, 2012 10:27 PM|LINK
I have created a Web Deployment Project in VS 2010 and after creating the deployment package the "IIS Web Application Name" parameter in SetParameters.xml is "Default Web Site/MyProjectWDP". I am unable to find a way to change this value.
If I instead build the deployment package from the Web Application Project itself, the project properties allows this parameter to be preset. However, I need to work with a separate Web Deployment Project so that I can get the asp.net views (.aspx, .ascx, and .master files) pre=compiled before deployment. In this scenario I can't find any way to set this parameter.
Thanks for your help,
Gary
wdp
Dino He - MS...
Star
8068 Points
1023 Posts
Microsoft
Re: How to preset IIS Web Application Name in Web Deployment Project
Jun 15, 2012 02:50 AM|LINK
Hi
This link should helpful:
How to: Use Parameters to Configure Deployment Settings When a Package is Installed
wdp
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework
gxclarke
0 Points
2 Posts
Re: How to preset IIS Web Application Name in Web Deployment Project
Jun 15, 2012 01:09 PM|LINK
Hello Dino,
I had already reviewed that article, but it does not address my issue. I did the following:
1. In my Web Application Project, added parameters.xml:
<parameters>
<parameter name="IIS Web Application Name"
description=""
defaultValue="My Deployed Website"
tags="" />
</parameters>
2. In my associated Web Deployment Project, executed Build Deployment Package.
3. Examine the SetParameters.xml file after the deployment build is complete:
<setParameter name="IIS Web Application Name" value="Default Web Site/MyWebsiteWDP" />
Regards,
Gary