Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Sharing a VS2005 web application in SourceSafe

Sharing a VS2005 web application in SourceSafe

Scheduled Pinned Locked Moved ASP.NET
helpquestionannouncement
6 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PeteConc
    wrote on last edited by
    #1

    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.

    N 1 Reply Last reply
    0
    • P PeteConc

      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.

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      DOn't add the solution file (sln) to VSS, you should only add the project file (csproj or vbproj).

      P 1 Reply Last reply
      0
      • N Not Active

        DOn't add the solution file (sln) to VSS, you should only add the project file (csproj or vbproj).

        P Offline
        P Offline
        PeteConc
        wrote on last edited by
        #3

        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.

        N 1 Reply Last reply
        0
        • P PeteConc

          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.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          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"

          P 1 Reply Last reply
          0
          • N Not Active

            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"

            P Offline
            P Offline
            PeteConc
            wrote on last edited by
            #5

            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.

            P 1 Reply Last reply
            0
            • P PeteConc

              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.

              P Offline
              P Offline
              PeteConc
              wrote on last edited by
              #6

              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.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups