Example #1
0
        internal static void AddWebProjectExtensions(ProjectRootElement project)
        {
            // Adding this section prevents IIS Express required error message
            var projExt = project.CreateProjectExtensionsElement();

            project.AppendChild(projExt);

            projExt["VisualStudio"] = @"
    <FlavorProperties GUID=""{349c5851-65df-11da-9384-00065b846f21}"">
    <WebProjectProperties>
        <AutoAssignPort>True</AutoAssignPort>
        <UseCustomServer>True</UseCustomServer>
        <CustomServerUrl>http://localhost</CustomServerUrl>
        <SaveServerSettingsInUserFile>False</SaveServerSettingsInUserFile>
    </WebProjectProperties>
    </FlavorProperties>
    <FlavorProperties GUID=""{349c5851-65df-11da-9384-00065b846f21}"" User="""">
    <WebProjectProperties>
        <StartPageUrl>
        </StartPageUrl>
        <StartAction>CurrentPage</StartAction>
        <AspNetDebugging>True</AspNetDebugging>
        <SilverlightDebugging>False</SilverlightDebugging>
        <NativeDebugging>False</NativeDebugging>
        <SQLDebugging>False</SQLDebugging>
        <ExternalProgram>
        </ExternalProgram>
        <StartExternalURL>
        </StartExternalURL>
        <StartCmdLineArguments>
        </StartCmdLineArguments>
        <StartWorkingDirectory>
        </StartWorkingDirectory>
        <EnableENC>False</EnableENC>
        <AlwaysStartWebServerOnDebug>False</AlwaysStartWebServerOnDebug>
    </WebProjectProperties>
    </FlavorProperties>
";
        }