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. General Programming
  3. Visual Studio
  4. VS + Subversion: best repository layout?

VS + Subversion: best repository layout?

Scheduled Pinned Locked Moved Visual Studio
visual-studioquestioncsharpcollaboration
3 Posts 2 Posters 0 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.
  • M Offline
    M Offline
    Metal76
    wrote on last edited by
    #1

    Hi, anybody out there using Subversion + Visual Studio? I have a question for you. I have a VS solution with multiple projects, with a folder structure similar to this one:

    SolutionFolder

    Solution.sln

    |
    |
    +---Project1Folder

    SourceFile1.cs
    ...
    SourceFileN.cs
    Project1.csproj

    |
    +---Project2Folder

    SourceFile1.cs
    ...
    SourceFileN.cs
    Project2.csproj

    |
    \---SampleAppFolder
    SampleApp.cs
    SampleApp.csproj

    Up till now I just committed the whole structure as a single unit, working from the root (SolutionFolder), but with this approach I cannot keep a distinct versioning on single Projects (i.e. I have to commit the whole solution, even if I only change Project1, and this also applies to branches and tags!). Which is the best SVN repository folder structure in order to have separate versioning on "child" project and at the same time maintain cohesion with the "root level" solution?

    P 1 Reply Last reply
    0
    • M Metal76

      Hi, anybody out there using Subversion + Visual Studio? I have a question for you. I have a VS solution with multiple projects, with a folder structure similar to this one:

      SolutionFolder

      Solution.sln

      |
      |
      +---Project1Folder

      SourceFile1.cs
      ...
      SourceFileN.cs
      Project1.csproj

      |
      +---Project2Folder

      SourceFile1.cs
      ...
      SourceFileN.cs
      Project2.csproj

      |
      \---SampleAppFolder
      SampleApp.cs
      SampleApp.csproj

      Up till now I just committed the whole structure as a single unit, working from the root (SolutionFolder), but with this approach I cannot keep a distinct versioning on single Projects (i.e. I have to commit the whole solution, even if I only change Project1, and this also applies to branches and tags!). Which is the best SVN repository folder structure in order to have separate versioning on "child" project and at the same time maintain cohesion with the "root level" solution?

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Metal76 wrote:

      I have to commit the whole solution, even if I only change Project1

      So what is wrong with it changing the version if you change a particular project within the solution?

      "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      M 1 Reply Last reply
      0
      • P Paul Conrad

        Metal76 wrote:

        I have to commit the whole solution, even if I only change Project1

        So what is wrong with it changing the version if you change a particular project within the solution?

        "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        M Offline
        M Offline
        Metal76
        wrote on last edited by
        #3

        The problem is that the solution includes several projects which should be versioned independently; instead, with a single commit I have to tag the whole solution, I cannot tag single projects. For example suppose that both Project1 and Project2 are version 1.0.0, then I work only on Project1 and it moves to version 1.1.0. If I have a single commit with the whole solution, I will not able to store Project1 and Project2 versions as separate tags.

        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