Creating an ASP.NET 2.0 Project, sorry, I mean Web Site, in VSTS
I'm kind of jumping around in Visual Studio Team System (VSTS), looking at things as they strike my fancy. In this post, I'm going to go through my process of creating an ASP.NET 2.0 Web Site in VSTS. (Note that it is not called a "project" anymore. I'll see if I can find out why at some point).
I opened Visual Studio 2005 (VS2005), and selected File->New->Web Site. This opens the "New Web Site" dialog box:
Figure 1 - New Web Site Dialog Box
VS2005 comes with five pre-installed templates for me to use for creating new web sites:
- ASP.NET Web Site - A blank ASP.NET web site
- Empty Web Site - An empty web site
- ASP.NET Web Service - A web site for creating XML web services
- ASP.NET Crystal Reports Web Site - An ASP.NET web site with a sample crystal report
- Personal Web Site Starter Kit - Starter kit for creating a personal web site
There is a Language Drop Down List Box (DDLB), for selecting my development language. Currently, there are three options: Visual Basic, Visual C#, and Visual J# (does anyone actually use J#? Just curious)
There is a Location DDLB with the options: File System, HTTP, FTP. It defaults to File System->My Documents\Visual Studio\Websites\website1. You can click the Browse button, which opens the Choose Location dialog box:
Figure 2 - Choose Location Dialog Box
This dialog also gives you options, such as opening an existing website, or creating a new FrontPage website, among others.
I'm just going to build an ASP.NET web site, so I pick that option. I select C# as my Language, and File System as my Location. I changed the File System folder name to be: My Documents\Visual Studio\WebSites\MyFirstWebSite
I click the OK button and it creates the project...err, I mean web site, for me:
Figure 3 - IDE After Web Site Creation
So, I now have my web site open in the IDE. Currently, there is one file in it, Default.aspx, and the web site is NOT associated with a Team System Project or with any source control. Let's fix that.
I open the Team Explorer window, which is connected to my Team Foundation server. I click the New Team Project button. This opens the New Team Project window. I enter MyFirstWebSiteTeamProject as the Team Project Name, and the portal is set to http://vsts-tf/sites/MyFirstWebSiteTeamProject. I create an empty version control folder: $/MyFirstWebSiteTeamProject.
The project is created successfully. I told it to let me view both the Project Creation log file, and the Process Guidance Page. The Process Guidance page errored out in trying to be displayed, but I was able to view the Project Creation log file with no issues. This file is chocked full of information, and while it looks a little cryptic, I think with a little effort it will start to make sense. I'm going to tackle that in a later post.
So now I have my web site, and have it associated with both a Team System Project, and my project is displayed in the Team Explorer Window. Life is good.
The next several posts after this one are going to delve into adding this solution to the source control, what all is created automatically for you when you create a Team System project, and then I'll start delving into the security settings in Team System, for your Team System Projects.