VS.net 2005 web projects folders

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
amensi
Posts: 3
Joined: Sat Apr 22, 2006 9:07 pm

VS.net 2005 web projects folders

Post by amensi » Fri Apr 28, 2006 3:02 pm

Hello,

We have web projects under vault and in the App_Code folder we have several sub folders.

When a new user opens the website from vault within vs.net those folders are not recreated. He has to manually create the folder and then do a Get Latest. Am i doing something wrong.

--
Alexandre Mensi
Senior ASP.net Architect
Dot Architects

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon May 01, 2006 9:51 am

Can you describe your project structure? Do you have a solution file and other projects or is it just the web project?

I've reproduced this here and will look into it to see if it is a problem with Vault, or if the problem is Visual Studio not asking for files.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon May 01, 2006 3:52 pm

OK, this is an issue with Vault, but it is complicated, so it woud be good to verify that what I found describes what you are seeing.

If you have working folders set below the main project (say the web project has a working folder and the App_Code folder below exists, and its working folder is NOT inherited, but explicitly set), then if you do an Open From Source Control from the IDE to a new location (requiring the working folder to change), then the App_Code folder doesn't actually get its working folder changed, and the Get does not go to the right place.

For example: $/project/Website1 has a working folder of C:\temp\WebSite1, and $/project/Website1/App_Code has an explicitly set working folder of c:\temp\WebSite1\App_Code (it isn't inherited).

If you do an Open From Source Control, and choose C:\temp\AnotherWebsite1 as the working folder, the App_Code folder is not retrieved because the working folder is still set to c:\temp\WebSite1\App_Code when it should be c:\temp\AnotherWebSite1\App_Code.

We made a change that will be available in our next release, but in the meantime, if you go to the GUI client and set the working folders to be overridden and then do a Get, it should work.

matt_stephens
Posts: 27
Joined: Wed Mar 08, 2006 4:22 am

Post by matt_stephens » Wed May 10, 2006 7:25 am

Alexandre, you might want to look at this http://msdn.microsoft.com/asp.net/refer ... fault.aspx

We had terrible trouble moving our projects from Visual Studio.NET 2003 to Visual Studio 2005 and keeping them in Vault. Our main issue was that we referenced other class library code from our main solution and it seemed virtually impossible to be able to arrange a folder structure that would work properly on all developers machines without each one having to edit the references themselves. We also found that everytime we used the Open From Source Control command the working directory would get modified by either visual studio or vault. We've found it much easier to work with this project mode of working for our websites and webservices.

Matt

Post Reply