Is this proper procedure for VS.NET 2005 Website projects?

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

Moderator: SourceGear

Post Reply
sharbel
Posts: 3
Joined: Thu Oct 04, 2007 8:06 am
Contact:

Is this proper procedure for VS.NET 2005 Website projects?

Post by sharbel » Thu Oct 04, 2007 8:15 am

Hi there,

Our firm has just begun using source vault, and while the implementation instructions are a bit hard to come by, I think we have the system down now where we can use it.

We are a web development firm. So the bulk of our projects are created with the Website project template (Not web-application template, is there really a compelling reason why we should use web-app template??).

Anyway, this is the rough instructions that I have come up with for our staff to add new websites or access vaulted sites for the first time. I would appreciate it if someone could let me know if I am doing something glaringly wrong here?

Creating a New Site Under Vault:

1) You need to create a Solution file/directory where the website will sit in.
---------a) Select NewProjectsOther Project TypesVisual Studio Solutions
---------b) Make sure Location: is c:\inetpub\wwwroot
---------c) Name the Solution. If the site is Wired Solutions’ site, call the solution
wiredsolutions for example
2) Now that Solution directory/file is created, right click the Solution in Visual Studio and select AddNew Website (or Add New Ajax Enabled Website)
-------a)Make sure location: is set to HTTP and address
-------b)Set address (to the right) to http://localhost/<solutionname>/<solutionname>site
3) Click Save All Icon (to save the solution and site)
4) Right click the Solution and select Add Solution To Vault and Connect To Server
5) Select the Repository and click OK
6) By default the solution is added to the root, so just click OK
7) You might get a warning of file overwrite, just click Discard


Connecting to an Existing Site For the First Time:

1) Close out of any projects you are in (FileClose Solution)
2) Select FileOpen From Vault
3) Connect to Server & choose Repository
4) Select the Solution Name on the left, then select the Solution File (<solutionname>.sln) in right panel, then click OK
5) Working folder dialog comes up, type in c:\inetpub\wwwroot\<solutionname> and click OK

felinesoft
Posts: 5
Joined: Mon Sep 03, 2007 10:35 am

Post by felinesoft » Thu Oct 04, 2007 8:44 am

the 2005 vault client has problem with web site project. (or maybe is becuase of vs2005 itself)

it wants to check-in the stuffs in your bin folder

sharbel
Posts: 3
Joined: Thu Oct 04, 2007 8:06 am
Contact:

Post by sharbel » Thu Oct 04, 2007 8:49 am

So the vault client does not work with VS.NET 2005 Website Projects? I really dont want to use Web Application project because things to not get added to folders automatically, and you have to compile on each change etc.

Is the Website project (or more importantly Ajax Enabled Website project) not going to work for us with the steps above?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Oct 04, 2007 10:36 am

The steps you listed look good.

The biggest stumbling block with web site projects and any integrated source control is that Visual Studio makes it somewhat difficult to have a sane relative path between your solution file and the web site itself. The ideal setup is this:

x:\y\z\website.sln
x:\y\z\website\ (a folder directly beneath the solution)

To accomplish this you have to create a blank solution first, as you've discovered.

The issue felinesoft mentioned is related to files in the bin folder of web site projects. The current release (4.0.4) erroneously tries to include them when you check in changes. You have to de-select them before you commit. This issue is corrected for 4.0.5, due to be released soon.
Ian Olsen
SourceGear

sharbel
Posts: 3
Joined: Thu Oct 04, 2007 8:06 am
Contact:

Post by sharbel » Thu Oct 04, 2007 7:09 pm

Thanks Ian,

I have to admit, its been a little difficult to establish a consistent behavior with adding projects to the vault or retrieving them for the first time. A lot of the issues that have been coming up don't appear to be really be SV issues perse but some are.

Regardless, I think its just a matter of getting used to the procedure. Although I am still fighting (read swearing) at the system, it is getting easier now that I've been using it for a couple a few days.

Question: When I create a new site to the blank Solution, I've noticed that I somtimes have to add the website directory to the Vault for new files that I add to be auto added. Is this normal?

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Fri Oct 05, 2007 7:58 am

Empty folders aren't automatically added to the repository. As soon as you put a file in it, both the file and the folder will have their addition pended.
Ian Olsen
SourceGear

Post Reply