VSIP Client - Web Project BIN folder

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

Moderator: SourceGear

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

VSIP Client - Web Project BIN folder

Post by neal007 » Fri Oct 26, 2007 3:40 pm

Hello,

We switched over to the Vault 2005 client and in our VB.NET 2005 web application project Vault is trying to add all of the DLL, PDB, and XML files. We're using 4.0.5, I thought this was one of the issues fixed? I checked the admin and I do see bin in the folder exclusion, the DLL and PDB in the file exclusions, why are they getting added?
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Post by Beth » Fri Oct 26, 2007 3:59 pm

Was there anything pending to be checked in before the switch?

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Fri Oct 26, 2007 4:03 pm

No, not that I'm aware of. I had actually opened up Vault Client (GUI) and did a Get Latest before I migrated all of the projects. I have not allowed the check-in of the file additions, not sure if I should let it proceed or not. I don't see yellow plus signs in the bin folder of the project but when I right-click and select "Checkin" from the menu those files are in the list.

Also, nit-noid, but shouldn't the menu text be "Check-in" and not "Checkin"? I suggest checking the menu text items to make sure they are technically correct.
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Oct 26, 2007 4:06 pm

I'm loading up a test environment to see if I can re-create this.
Jeff Clausius
SourceGear

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

Post by ian_sg » Fri Oct 26, 2007 4:14 pm

The change was to web site projects, which are not the same as web application or web service projects (which you asked about in July). The fix involved correctly interpreting Visual Studio's response to "should I include this file in source control?" for web site projects. We did not add consultation of the Vault exclusion list(s) for the same reasons I gave when you asked in July. In that same thread, Jeff described the role of the exclusion lists. They have no role in the IDE.

Note that in a web application or web service project, you can decide what folders/files are included/excluded from your project. (In a web site project you cannot.) As I said in that thread back in July, if you're going to explicitly include build artifacts (e.g. dlls, pdbs) in your project, this is expected behavior. You might consider why you have build output explicitly included in your projects.
Ian Olsen
SourceGear

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Fri Oct 26, 2007 4:25 pm

Sorry for any confusion in the terminology, it is a "web site"
Attachments
WebSite.png
WebSite.png (19.81 KiB) Viewed 6935 times
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Oct 26, 2007 4:34 pm

Neal, in my testing a "web site" has no default bin\.

With that said, I see you can add a bin\ to the solution. Can you give a better description of the make up of your solution? What files should I put in the bin? Some other library component referenced in the web app?

[EDIT] - I see you've added a screen shot. Can you verify you added a bin\ directory to the solution from the context menu of the solution?
Jeff Clausius
SourceGear

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Fri Oct 26, 2007 4:53 pm

Jeff,

I didn't add the bin folder, VS.NET did when I added references to the other class libraries required for use in the web "site". Some are project references, some are direct assembly references. Nothing special going on here, just a basic asp.net 2.0 web site with references. Again, I did NOT add the bin folder.
Attachments
FullSolution.png
FullSolution.png (56.93 KiB) Viewed 6927 times
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Fri Oct 26, 2007 4:55 pm

I don't have the option of excluding/removing the bin folder either, not sure I would want to.

Additionally, when I right-click on the bin folder, it is taking about 15 seconds to show the context menu.
Attachments
ContextMenu.png
ContextMenu.png (36.23 KiB) Viewed 6925 times
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Oct 26, 2007 5:13 pm

So I need to create a separate project, and then add a reference within the web site? I'll try to get that setup sometime this weekend. After that, I'll need to check with Ian and see if we can figure out what is going on.

Thanks for the description.


p.s. I'll take a look at the context menu on the bin\ folder as well.
Jeff Clausius
SourceGear

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Fri Oct 26, 2007 5:24 pm

The context menu is on any folder, not just /bin, and also the verbage which I think is "Check-In" vice Checkin - not sure.

But yes, the solution contains a web site and then various class libraries which the web site references.

Thanks for investigating.
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

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

Post by ian_sg » Sat Oct 27, 2007 4:28 pm

I was unable to reproduce this. Here's what I did:

1. Create a new VB web site project.
2. Create a new VB class library.
3. Add a reference in the web site project to the class library.
4. Compile. A bin folder is created and contains a dll, pdb, and xml file from the class library.
5. Add solution to Vault.

The bin folder was not added, nor were it contents.

I then repeated steps 1-5 in CVS mode and got the same result.

Then:

6. Add another VB class library. Adds for all its source files were pended.
7. Add a reference in the web site project to this new class library.
8. Compile. All the relevant results were added to the web site's bin folder.
9. Commit. None of the bin's folders contents were included.
Ian Olsen
SourceGear

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Sat Oct 27, 2007 4:57 pm

It's hit or miss, today I deleted a few files out of the bin folder (dll, pdb, and xml) then did a Build..Rebuild on the solution and they went back into the bin folder with yellow + symbols and were in the add list at solution check-in.
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

neal007
Posts: 225
Joined: Tue Feb 17, 2004 10:13 am

Post by neal007 » Sun Oct 28, 2007 11:24 am

Regarding the slow menus, if I left click on the solution node, wait for the solution explorer toolbar to update and then righ-click, the context menu will appear right away. However, if I right-click on the solution node directly without it being active, it will take a while for my context menu to appear - probably something specific to my computer, who knows.

Regarding the menu items of "Checkout" and "Checkin" you can see how they are displayed in the MSSCCI client. "Check Out" and "Check In" I believe is correct, however, I see one line they use "Checkout" odd!
Attachments
Menus.jpg
Menus.jpg (75.72 KiB) Viewed 6815 times
Neal Culiner
NC Software, Inc.
http://www.nc-software.com

Vault 5.1.2
VS 2010/C#
Windows 7 Ultimate x64

VB.NET Forums: http://www.vbdotnetforums.com

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Mon Oct 29, 2007 10:22 am

Neal:

I was able to get the Vault VSIP client to create a bin\ folder, but the contents (.dll, .pdb, and .xml) of that folder were not added to Vault, and none of the files in that directory were added to the change set. I tested against Visual Studio 2005 Professional 8.0.50727.42 (RTM.050727-4200) with MS .NET Framework 2.0.50727 SP1 on Windows XP Pro.

Perhaps I'm doing something wrong in my steps. Can you look them over? Perhaps you can see if I did something different.

1) Created a web site using VB as the language. Added the web site to http://localhost.
2) Added a VB class library project.
3) Added the entire solution to Vault. Note, no bin\ folder was created, nor did it show up.
4) Issued a "Rebuild Add". At this point, a bin\ "Create Folder" for the web site was put in the pending change list, but the ClassLibrary files found within the web site were *not* added.
5) Committed the "create folder", which in essence adds an empty folder to the repository.

6) I added another class library and its reference to the project, and the committed this to Vault. Still no change to the bin\ directory.



I'm not sure if you're running VS 2005 Pro w/ VS 2005 Service Pack 1. I'm currently in the process of setting up that environment to test these same steps.
Jeff Clausius
SourceGear

Post Reply