Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 8 of 8

Thread: Source Control

  1. #1
    mmann is offline Junior Member
    Join Date
    Aug 2008
    Posts
    20

    Default Source Control

    I am trying to set up a source control system. I have a development site set up in source control. I have a copy of the site on a local machine and checkout files to work on them locally. I do a check-in to a source control database on the development server. Changed files are automatically put into the dev site on check-in. Changes in files like templates that are not part of the source code are immediately seen on the dev site.

    I may have only 1 developer working or might have several coding. If I do a build of the source I do it on my local machine. I am not sure what the best practice would be to get a new build to the server. Can anyone make any suggestions?

  2. #2
    Dimmer is offline Member
    Join Date
    May 2008
    Location
    London
    Posts
    40

    Default

    Hi

    I would suggest using just the one machine to upload changes, get the latet version from your repositry and recompile.
    Alan
    Version (Code/DB): AspDotNetStorefront ML 7.1.0.0/7.1.1.0 - with modifications
    www.stuff-uk.net

  3. #3
    K-BL is offline Member
    Join Date
    Aug 2008
    Location
    USA
    Posts
    43

    Default

    There are many source control products that you can choose from, but the most popular that I've found is Subversion (aka SVN). There are different ways to use subversion, but the easiest is to use a centralized server using VisualSVN Server (http://www.visualsvn.com/server/) , it's easy to use and it's free.

    Then to upload, commit, and download projects, you would use a svn client such as TortoiseSVN (http://tortoisesvn.net/downloads), also free.

    If you are new to Subverison, this is an excellent how to: http://www.dev102.com/2008/10/07/how...rsion-control/

    , Subversion makes it easy!

  4. #4
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    We use SourceGear Fortress internally. Just a small plug for them. Works reasonably well, performance ok for distributed devs, now that they got some earlier version release hiccups out of their system (like all software companies)
    AspDotNetStorefront
    Shopping Cart

  5. #5
    mmann is offline Junior Member
    Join Date
    Aug 2008
    Posts
    20

    Default

    I'm using SourceGear Fortress too. My original question was about build management best practices. What do the folks at ASPDNSF use when they need to do a build? Are the builds done on a central server for example? How do people contribute code to the build? Is it automated by some other piece of software?

  6. #6
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    We have a centralized fortress server yes. Devs can pull/edit/update that from anywhere worldwide if needed. Connection speeds differ of course, but it all works.
    AspDotNetStorefront
    Shopping Cart

  7. #7
    ssgumby is offline Senior Member
    Join Date
    Feb 2009
    Posts
    683

    Default

    Ok, you have me curious about subversion.

    So to set this up properly I would install VisualSVN Server on a server. I would then install the VisualSVN plugin into Visual Studio. The plugin would be configured to point at the VisualSVN server and my code would checked out/in to that server.

    I come from a Java developer background so I am familiar with CVS and ClearCase. I assume the fundamentals are the same?

    Lastly, coming from a java background, is there a way in C# to do a build as opposed to doing it in the IDE? I mean in java I use ant to build the app and bundle it in an ear. Is there anything similiar to that at all in .NET? It just would be nice to have a "release" bundled up and deployed and keep history. Say changes go in and there is a critical issue discovered, I want to roll back to my previous version.

    Ok, talking out loud there Any tips greatly appreciated.

  8. #8
    Vortx is offline Junior Member
    Join Date
    Feb 2010
    Posts
    22

    Default Build Scripts

    .NET has a couple options for building projects and solutions outside of Visual Studio. The first is MSBuild, http://msdn.microsoft.com/en-us/library/0k6kkbsd.aspx, which is what Visual Studio uses under the hood. The other option is NAnt, http://nant.sourceforge.net/. This is the .Net version of Ant and the one you'll probably be more familiar with.