Sharing a VS2005 web application in SourceSafe
-
Hello. I am having some trouble sharing a web application with Visual SourceSafe. Here is what I've done: -I have created a web application with VisualStudio2005 and saved it to the folder 'C:\Projects\WebSite' in my workstation. -Then I added it to SourceSafe 6.0 (to '$\Projects\WebSite') with the 'add solution to source control' option in VisualStudio2005. -A developer in other workstation entered SourceSafe and clicked get latest version in '$\Projects\WebSite'. The web application was copied locally to 'C:\Projects\WebSite'. -Then he double clicked the solution file to open the project. VisualStudio returned an error message saying that the folder 'WebSite' does not existed, and then it automatically created an empty new 'WebSite' folder beneath 'C:\Projects\WebSite'. I don't understand why it searches for 'C:\Projects\WebSite\WebSite' instead of 'C:\Projects\WebSite'. I also noticed that, when opening the solution file with notepad, there is a reference to the absolute path of the solution as in the workstation where it was originally created before being added to source safe. What am I doing wrong? Any help? Thank you very much.
-
Hello. I am having some trouble sharing a web application with Visual SourceSafe. Here is what I've done: -I have created a web application with VisualStudio2005 and saved it to the folder 'C:\Projects\WebSite' in my workstation. -Then I added it to SourceSafe 6.0 (to '$\Projects\WebSite') with the 'add solution to source control' option in VisualStudio2005. -A developer in other workstation entered SourceSafe and clicked get latest version in '$\Projects\WebSite'. The web application was copied locally to 'C:\Projects\WebSite'. -Then he double clicked the solution file to open the project. VisualStudio returned an error message saying that the folder 'WebSite' does not existed, and then it automatically created an empty new 'WebSite' folder beneath 'C:\Projects\WebSite'. I don't understand why it searches for 'C:\Projects\WebSite\WebSite' instead of 'C:\Projects\WebSite'. I also noticed that, when opening the solution file with notepad, there is a reference to the absolute path of the solution as in the workstation where it was originally created before being added to source safe. What am I doing wrong? Any help? Thank you very much.
DOn't add the solution file (sln) to VSS, you should only add the project file (csproj or vbproj).
-
DOn't add the solution file (sln) to VSS, you should only add the project file (csproj or vbproj).
-
In Visual Studio 2005 there is no project file for web applications, just solution file, so the problem must be other thing. But thanks for the advice anyway.
If you have more than one project in the solution it does add the sln file to VSS when you use the "Add Solution to Source Control"
-
If you have more than one project in the solution it does add the sln file to VSS when you use the "Add Solution to Source Control"
When we use 'add solution to source control' in VS2005 it automatically adds to source safe the needed files. For web applications there is just a solution file, not a project file, so if I don't add the solution file, my web application cannot be opened by other developers. Maybe there's some tricky detail.
-
When we use 'add solution to source control' in VS2005 it automatically adds to source safe the needed files. For web applications there is just a solution file, not a project file, so if I don't add the solution file, my web application cannot be opened by other developers. Maybe there's some tricky detail.
Hi. I am still having trouble with VS2005 websites and visual sourcesafe. I created a new ASP.NET website for testing in 'C:\Projects\MyWebSite' and noticed there is two different options in the SourceControl menu: - Add solution to source control and - Add web site to source control When choosing the second option the solution file is not added to source safe, just the folders and aspx files. That's fine for me. Then another developer entered source safe and 'get latest version' to his workstation. The website is copied without a solution file, so we need to create one. And this is the point where we get stuck. We create a new empty web site and point it to 'C:\Projects\MyWebSite'. But after doing this the aspx files seem like they have lost the integration with source safe. Can anyone give me a simple example on how to setup things to share a website in source safe? Thank you very much.