Exclude web project Bin folder with VS.2005
Moderator: SourceGear
Exclude web project Bin folder with VS.2005
When running a web project in directory base mode with VS.NET 2K5 the web project is pretty much no existent but we have an issue with Vault sucking in project related assemblies. The issue is that during a build it will (obviously) need to overwrite the assembly in the bin file to update the version except for the fact that this file now becomes a contention point. Of course, we do not want to version our references at this level - our build can handle all of this.
My question is: Can I tell Vault (or solution file which vault can read) to not include a particular sub directory? I am having developers "Check-in Recursively" and getting the \bin folder included.
My question is: Can I tell Vault (or solution file which vault can read) to not include a particular sub directory? I am having developers "Check-in Recursively" and getting the \bin folder included.
Exclude web project Bin folder with VS.2005
Thanks Dan.
I may have done a poor job explaining the situation so I am going to try again. With VS.NET 2K5 there are no more web project files when using file based web sites, everything is pushed into the solution file. Therefore to VS.NET 2K5, everything underneath the web diretory is "fair game" and is published to the web. Matter of fact, the "Exclude from Project" context menu does not even exist.
So, for example:
1. Let's say I have WebProject1 as my main web site. At this point I only have one project in my solution file - WebProject1.
2. I now want to add some business logic so I add ClassProject1 to the solution.
3. Next, I a reference to ClassProject1 from WebProject1.
4. Add solution to Vault. (NOTE: Before building, let's assume we know it's ok )
5. Now Build. You will notice the references are underneath the web site in a \bin folder. Vault now assumes this file is part of the solution - it will have the "New File Added" icon next to the file.
Step 5 is what I would like to tell either Vault or the .sln file to exclude.
I have included a test project using the names above for better explanation.
Kevin Cunningham
I may have done a poor job explaining the situation so I am going to try again. With VS.NET 2K5 there are no more web project files when using file based web sites, everything is pushed into the solution file. Therefore to VS.NET 2K5, everything underneath the web diretory is "fair game" and is published to the web. Matter of fact, the "Exclude from Project" context menu does not even exist.
So, for example:
1. Let's say I have WebProject1 as my main web site. At this point I only have one project in my solution file - WebProject1.
2. I now want to add some business logic so I add ClassProject1 to the solution.
3. Next, I a reference to ClassProject1 from WebProject1.
4. Add solution to Vault. (NOTE: Before building, let's assume we know it's ok )
5. Now Build. You will notice the references are underneath the web site in a \bin folder. Vault now assumes this file is part of the solution - it will have the "New File Added" icon next to the file.
Step 5 is what I would like to tell either Vault or the .sln file to exclude.
I have included a test project using the names above for better explanation.
Kevin Cunningham
- Attachments
-
- WebSite2.zip
- (3.07 KiB) Downloaded 778 times
I would guess that it is Visual Studio doing this and not Vault, because when a project is under source control, it is VS that decides which files are added rather than the source control provider. One way to verify is to make VSS the default provider and see if it handles it differently.
I will look into this in the next few days, but you might also post to the VS 2005 forums and ask about it there as well.
Thanks,
I will look into this in the next few days, but you might also post to the VS 2005 forums and ask about it there as well.
Thanks,
Thanks for looking into it. I do not have any responses yet but I will post back here if I get one. It's a pain but we can manage. I was also able to recreate it in Visual Source Safe so you're right it's affecting users of both Vault and VSS. I image this is going to bite alot of people
Here is the post in the MS forums. 14 views in 2 days ... grrrr
http://forums.microsoft.com/msdn/ShowPo ... ostID=6338
Here is the post in the MS forums. 14 views in 2 days ... grrrr
http://forums.microsoft.com/msdn/ShowPo ... ostID=6338
Workaround
This issue has already been entered into the VS.NET feedback site and has been validated as a legitimate issue. The work around is to mark the "\bin" folders writable and then "Cloak" the folders. This actually works really well.
http://lab.msdn.microsoft.com/ProductFe ... 4abc9c4005
http://lab.msdn.microsoft.com/ProductFe ... 4abc9c4005