The /bin folder question

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

Moderator: SourceGear

Post Reply
StuartHemming
Posts: 113
Joined: Wed Sep 26, 2007 3:10 am
Location: Grantham, Lincs, UK.
Contact:

The /bin folder question

Post by StuartHemming » Wed Sep 26, 2007 4:34 am

I've read those threads on the subject of Vault (or rather, VS) including all of the files in a Web Site's /bin directory in the repository.

What I haven't seen is a solution to the problem I have wherein I have a number of projects, including a number of toolsets which we've written, included in the solution.

If I make a change to a toolset class and compile it up that class compiles OK and vault recodnises that the file has been changed. When, however, I come to compile my website I will get a compile error if the source includes, for example, access to a method that was added in the recent changes.

I'm not sure how I'm supposed to get this new version of the file to be used in the web site.

If it makes any difference in using CVS-style development in v4.0.4

--
Stuart

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

Post by ian_sg » Wed Sep 26, 2007 8:06 am

Let me make sure I understand. Simplified, you have something like this:

Solution
- Web Site
- Class Library

The web site makes use of code in the class library, but when you make changes to the class library they're not available in the web site?

The typical way to set this up would be to add the output of the class library as a reference in the web site. This way Visual Studio will copy the file as necessary into the web site's bin folder.

If I've misunderstood the question, let me know.
Ian Olsen
SourceGear

StuartHemming
Posts: 113
Joined: Wed Sep 26, 2007 3:10 am
Location: Grantham, Lincs, UK.
Contact:

Post by StuartHemming » Wed Sep 26, 2007 8:48 am

No, this works fine, or rather it did until I used VS to add the various projects to Vault.

When I compile my class library, I can see that the file (including the compiled DLL) have changed as they are in the pending change set. But when I compile the web site the changes I made in the class library aren't available.

As I say, this worked fine prior to implementing the SCC stuff using VS/Vault.

--
Stuart

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

Post by ian_sg » Wed Sep 26, 2007 8:53 am

I understand now. If you remove the dll(s) in question from the repository do things work as you'd expect?
Ian Olsen
SourceGear

StuartHemming
Posts: 113
Joined: Wed Sep 26, 2007 3:10 am
Location: Grantham, Lincs, UK.
Contact:

Post by StuartHemming » Wed Sep 26, 2007 8:58 am

ian_sg wrote:If you remove the dll(s) in question from the repository do things work as you'd expect?
How? I'm a Vault virgin so be gentle.

I can't exclude the DLLs from the SCC functions in VS; this is a web site and it's documented here that you can't do that.

--
Stuart

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

Post by ian_sg » Wed Sep 26, 2007 9:16 am

I'd do it like this:

1. Close Visual Studio
2. Using the standalone Vault GUI client, delete the DLLs from the repository. (Because you're in CVS mode, make sure you commit the deletes, they won't happen immediately.)
3. Re-open Visual Studio
4. Recompile to get the dlls back in your working folder.
Ian Olsen
SourceGear

StuartHemming
Posts: 113
Joined: Wed Sep 26, 2007 3:10 am
Location: Grantham, Lincs, UK.
Contact:

Post by StuartHemming » Wed Sep 26, 2007 9:21 am

Gotcha.

TVM

--
Stuart

Post Reply