I'm building project templates in Visual Studio 2012. One of these is generated from an empty MVC4 project. What I need to change (except some file includes, which already works) is the web server settings, available under Project settings > Web > Servers.
I need to set it to "Use Custom Web Server". I put this is the template csproj:
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
<WebProjectProperties>
<UseIIS>False</UseIIS>
<AutoAssignPort>False</AutoAssignPort>
<DevelopmentServerPort>80</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl></IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>True</UseCustomServer>
<CustomServerUrl>$ControlPanelUrl$</CustomServerUrl>
<SaveServerSettingsInUserFile>True</SaveServerSettingsInUserFile>
</WebProjectProperties>
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
However, when the project is created - it seems to be overwritten to the "normal" defaults, with IIS Express on autogenerated port. Is there something required to change this in addition?