- Download the source http://communityserver.com/files/40/releases/default.aspx
- Download the latest release of Web Application Projects http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
- Download the VS 2005 Update to support Web Application Projects http://www.microsoft.com/downloads/details.aspx?FamilyId=8B05EE00-9554-4733-8725-3CA89DD9BFCA&displaylang=en
- Install the VS 2005 Update
- Install the Web Application Projects
- Load the solution <path>\CS_2.0.60217.2664_SDK\src\Community Server 20.sln
- Right click on the CommunityServerWeb20 project and click unload project
- Right click on the same project again and click Edit CommunityServerWeb20.csproj
- Change the following line from
<ProjectType>Local</ProjectType>
to
<
ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
From: Scott Gu's site
This instructs VS 2005 to treat this project not as a regular class library project, but rather as a VS 2005 Web Application Project (this will cause the web-items to by added to your new item dialog, support running the application using the built-in VS web-server or IIS, and enable auto-attaching to web-servers for debug scenarios among other things).
- Close the opened project file and click save
- Right click the same project again and click reload project
- Right click the same project again and click Properties
- You should now notice a WEB option on the left side
- Set the start page option to current page (this allows you to hit F5 on any page and it will start there)
- Set the servers options to Use IIS Web Server
- Set the starting URL to http://localhost/community or whatever your url maybe in IIS (you have to put the http:// in or it will fail)
- Leave the debuggers section unchanged (ASP.NET)
- Save changes (Almost Done)
- Right click the same project again and click Set as startup project
- Open the web.config file
- Change the compilation debug setting from false to true
<compilation defaultLanguage="c#" debug="true" />
- Last Step: open IIS and go to your website/virtual directory
- Click the directory security tab
- Click the Edit button under Anonymous Access and Authentication Control
- Check the check box at the bottom for Integrated Windows Authentication
NOTE: Be sure that IIS is pointing to your source (SDK) web directory
NOTE 2: If you find debugging to be slow... change your compilation options and tell VS not to rebuild the entire solution every time. This will significantly speed things up. Just be sure to rebuild the projects that you change.
To do this:
- Right Click on the solution
- Click Configuration Manager
- Choose debug as the Active Solution Configuration
- In the build column only leave the projects checked that you want to build everytime you hit F5
- Click Close
References:
http://webproject.scottgu.com/CSharp/Migration/Migration.aspx
http://communityserver.org/forums/thread/522403.aspx
http://developer.communityserver.org/default.aspx/CS.DebuggingInVS2005