views:

466

answers:

5

Hello!

Im trying to create a new ASP.NET website and add it to my subversion repository but it does not work because subversion only add the C:\Users\XXX\Documents\Visual Studio 2008\Projects\WebApplication1 folder and ignores the project files located in C:\Users\XXX\Documents\Visual Studio 2008\WebSites folder.

Why can't I add a ASP.NET website to Subversion like WindowsFormsApplications?

How shall i add a ASP.NET website to Subversion repository?

A: 

The folders have to have a common ancestor...that's an SVN thing. I tend to use the following structure:

C:\Projects\Clients C:\Projects\Clients\ClientName C:\Projects\Clients\ClientName\Web C:\Projects\Clients\ClientName\Libraries C:\Projects\Clients\ClientName\DB C:\Projects\Clients\ClientName\Design

ClientName is the repository root. If you decide to implement this structure, you can Export your already controlled code to the correct directory, and then Relocate your repository to the new place. I've had to do this a few times.

Good luck!

Chris B. Behrens
How do you create branches and tags with that kind of structure?
EasyDot
Note: editor is munging all these lines together...Create the following structure instead (I was giving you a simplified structure):C:\Projects\Clients C:\Projects\Clients\ClientName\trunkC:\Projects\Clients\ClientName\tagsC:\Projects\Clients\ClientName\branchesC:\Projects\Clients\ClientName\trunk\Web C:\Projects\Clients\ClientName\trunk\LibrariesC:\Projects\Clients\ClientName\trunk\DB C:\Projects\Clients\ClientName\trunk\DesignHere's the man page for the actual nuts and bolts: http://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-dug-branchtag.html
Chris B. Behrens
A: 

This is the article which helped me a lot when i was stuck long ago. Example uses an asp.Net project:

Asad Butt
A: 

Found help on Visual SVN website. You could solve the problem by rearrange the website project as a blank solution and copy all the web files under the same project directory.

The solution could then be added to subversion - same for Ankh and visual SVN client.

Or if you wanna start a whole new project: 1) File -> New -> Project -> Empty Project 2) Remove the empty project 3) Add a webb application project by rightclicking soulution: Add -> New Project -> ASP.NET Web Application

What do you think, this would solve the issue right?

EasyDot
@EasyDot: Going through some of these pains myself. This is what we're currently trying. I made a blank solution and added the "Web Site" and several Class Library projects to it.
JustinP8
A: 

Actually, you can just add the folder to your subversion repository, and then just use "Open Web Site" and open that folder from your working copy. It's probably not ideal, but that's what we've done while we figure out all this subversion stuff ourself.

The Blank Solution is probably better, then you can put the solution file in the repo. I think all developers using the repo will have to have the same exact working copy path (i.e. C:\WorkingCopy) in order for that to work though. Having tested this today, this is not correct. It doesn't matter where the path of your working copy is. It seems to work fine as long as the Web Site folder is in the same directory as the .sln file.

JustinP8
Open what folder and how?
EasyDot
@EasyDot: I'm using VS 2005, but you can open "Web Site" projects with FIle->Open Web Site... Then you would just open the outer directory of your Web Site project. This would be in your working copy if you put the website project on your subversion repository.
JustinP8
Its seems to work right? Or do you experience any problems?
EasyDot
@EasyDot: It works just fine that way. It will save a solution file to your C:\My Documents\Visual Studio 2005\Websites\ folder, though the actual code files will still be in your working copy folder.
JustinP8
+1  A: 
EasyDot
I still have not come up with a good solution to handle ASP.NET Websites in Subversion...
EasyDot