|Working with Websites in Team Foundation|
This tutorial describes how to retrieve a website from the Warp Team Foundation Project Source Control repository, how to download it on local storage, modify the source code, test it locally, and finally how to publish the website on Warp:
1. Connect to the Team Foundation server on Warp and open the Team Explorer in Visual Studio, as described here.
2. Double-click the Sorce Control section under your project in Team Explorer. This will open the Source Control Explorer tab
3. Select the website source directory that you wish to bring down to local storage, and right click on it. Click "Get Latest Version"
4. This will prompt you to browse to a local directory in which the entire website directory will be downloaded to. Select a folder and click OK.
5. After few seconds the website folder will be downloaded locally. You will notice that this folder will not be greyed out anymore on the server, and Local Path will contain the folder path on your local machine
5. You can now open the solution from local storage: File -> Open -> Project/Solution
6. Select the .sln file, and click Open
7. You will now have the website opened in the Solution Explorer. Notice the lock icons on all items, meaning that this website is mapped locally from Source Control.
8. To modify a file double click the file (or right-click the file) and select "Check Out for Edit" (for more information on checking files in and out click here)
9. To test the changes select Debug -> Start Debugging from the menu (or press F5)
10. This will prompt you to modify the web.config file. Click OK
11. Notice the popup window from the task bar informing you that the ASP.Net Development Web Server has been started. The default browser will be automatically opened and will contain the website you have just modified
12. In Visual Studio select Debug -> Stop Debugging. Both the file you have just modified and web.config will bear the red checkmark icons. This is because they are both checked out at this time
13. To save the changes back to Team Foundation server select the Pending Changes tab, and then click "Check In". You can also leave a comment with the changes for future reference.
14. At this point you have successfully applied the changes back to the source control repository. You can now publish the website to your user home directory on Warp. Right-click on the website (inside the Solution Explorer) and then select Publish Website
15. As target location select Remote Site and then the website location should be of the form "https://warp.senecac.on.ca/username/projectname" . Click Open
16. When asked, enter your Warp login and password
17. Test the newly published website on Warp by pointing the browser to the new location (https://warp.senecac.on.ca/username/projectname)
back to main page