Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Setting the start page
 

Setting the start page

Hi, is there any way to set the start page of a web project? I´ve tried changing the template and I also noticed that when web projects are created and you set a start page manually a file user.cs is created. I generated this file with my recipe but nothing happened. Is there any way to set the start page within the template or even better with an action?

Thanks,

Martin

Mar77incho  Wednesday, January 09, 2008 10:54 AM
Besides Adrian's suggestion which should work, I'm guessing this is so common that it should be supported by the DTE model, so Mar77incho you may want to try the VS extensibility forums about this.

-Victor.

vga  Monday, January 14, 2008 6:16 AM
Hi Martin, I created an empty WebApp project and checked the .csproj.user (probably the same you mentioned) and what I found is that the start page is being saved as following:

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}" xmlns="">
<WebProjectProperties>
<StartPageUrl>home2.aspx</StartPageUrl>


If I change the Start Page from the VS's context menu the value in the .csproj.user file is updated. So I'm assuming this file should resolve your problem. Anyway other forums could be useful to find out how to define the start page manually (ASP.Net, VSX).

HTH,
-Adrian
Adrian Alonso  Wednesday, January 09, 2008 12:31 PM
Besides Adrian's suggestion which should work, I'm guessing this is so common that it should be supported by the DTE model, so Mar77incho you may want to try the VS extensibility forums about this.

-Victor.

vga  Monday, January 14, 2008 6:16 AM

You can use google to search for other answers

Custom Search

More Threads

• Loosing Item Template Information
• Is there any way to automate the data repository mappings?
• Install Error for Guidance Automation Extensions - February 2008 Release
• Clarius SFT February 2007 CTP just released!!
• Command Bar Icon ID
• Web Project
• Organization of Projects using GAT
• Web Client Software Factory - controller class navigation tree
• Localization on Recipe Captions?
• Change location solution is unfolded to