CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > visual_studio.visual_studio_2005 Tags:
Item Type: NewsGroup Date Entered: 4/17/2006 6:01:22 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 3 Views: 32 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
4 Items, 1 Pages 1 |< << Go >> >|
jganderson
Asp.Net User
Must be a way to EXCLUDE web project bin folder from VSS checkin, please!4/17/2006 6:01:22 PM

0/0

I know that when a web project references a class library project that VS 2005 automatically does not check that file into VSS.  But when the web project references a DLL, it does check the DLL file in the bin directory into VSS.  There has GOT to be a way around this.   Here is my situation:

I have many web sites (over a dozen) that have the same functionality, but look very different from one another.  The way I do this is to have one solution with all the business and data access logic in class libraries and then one project in that solution that is the "template" web site.  It references everything as project references, and gets built at the same time as the business layer, etc.

Then I have a separate solution with the "customized" web sites in it.  Each customized web site points to a reference path that contains all the DLLs from the first solution including the DLL from the "template" site.  The ASP pages and the ASCX controls in the "customized" sites do not have code behinds.  Their "inherits" parameter of the page or control tag inherits from a class in the DLL of the template site.  So, there is no "code" or functionality in these customized sites, just the ASPX and ASCX files are changed to alter the layout and the "content".  (Separation of content and logic is a good thing, right?)

But, with VS2005, each of these dozen or so sites checks in ALL of their DLLS every time you do a checkout/checkin.  This is compounded by doing a share/branch in VSS to do work.  So I have gone from having NO dlls in VSS and a complete source backup file of about 40MB to having hundreds of DLLS (all copies of the same 20 or so DLLs, mind you) and a VSS backup file of about 200MB, which is overloading my offline backup system. 

So, how can I have a web project point to DLLS as references without checking in those DLLS to VSS?  Everything I have read on the web about VS 2005 so far says it is not possible.  I could move all the custom sites into the same solution as the business logic and the "template" site.  But I need to keep them separate as they are different teams working then for one (Creative vs. engineering) also I just don't want so many web projects in my solution. 

The best thing I can think of is to create a "dummy" class library project in my custom site solution.  This class library would reference all the DLLs but ad no code of its own.  All the custom web sites could reference this project as a project reference, thereby picking up all the DLLs but not checking them in because VS 2005 will detect that those DLLs come from a "project" reference.  But that is a hack.  Why did they add this "feature" to VS05?  I have never checked in any DLL.  It is bad for VSS (makes the DB huge) and bad for developers (getting a reference to a potentially old DLL from a source branch that was never deployed).

Please help, (sorry for the long message)
Thanks,

Jeff

cubeberg
Asp.Net User
Re: Must be a way to EXCLUDE web project bin folder from VSS checkin, please!4/17/2006 8:32:44 PM

0/0

Jeff,

I've struggled with this issue since I moved to 2005.  The Web Site model doesn't have a project file, so it doesn't allow you to exclude a file from the web site without renaming it with a .exclude extension (which isn't possible for DLL's).  I've found that if you delete the files in the bin directory and then rebuild, the DLL's aren't added as new items.  However, this becomes an issue for anyone who retrieves the project from VSS since they'll have to do it all over again.  It also pops up occassionally when I reopen the solution.

Scott Guthrie has noted that the new Web Application Project is supposed to address this issue.  I believe he even made some comments about it helping with Source Control issues that people were experiencing.  However, I've done some testing with the current Release candidate and it's not nearly stable enough  to do any significant work on.  Hopefully the final product will be available soon.


Chris Berg, MCAD
My Blog

jganderson
Asp.Net User
Re: Must be a way to EXCLUDE web project bin folder from VSS checkin, please!4/17/2006 9:51:53 PM

0/0

Yes, I read about the Web Application Project before posting.  It seems like a pretty big hack that is trying to get VS2003 behavior wedged into VS05.  It sounds like you have to give up some features of VS05 to get that to work, not to mention it being a "non standard" thing which will cause issues when sending work out to external contractors, etc.   I worry about setting up all my projects that way and then having to abandon it when the project team that is putting that out gets retasked or loses interest or whatever.

What I want is so simple -- a check box in the project property pages to "Check binaries into source control".  Although while they are at it, I wouldn't mind having the "exclude from project" option back so I can exclude images and other files that application developers don't work with, but need to consume while working.  I don't want to check images into VSS either, but at least that can be bypassed by making the /images folder an application folder itself (another hack).

Thanks for your reply
Jeff

cubeberg
Asp.Net User
Re: Must be a way to EXCLUDE web project bin folder from VSS checkin, please!4/18/2006 12:51:08 PM

0/0

Jeff,

That's definately a valid concern.  I think only time will tell if the WAP will become widely accepted.  Who knows, it could even become the accepted standard.  Unfortunately, from what I've seen so far, there seems to still be a lot of functionality missing between the WAP and Web Site model.  Hopefully that gap will close or they will come up with some additional modifications for the Web Site model to combat the issues you're talking about.  Apparently they had enough feedback about problems that they decided they needed to do something about it.

I know that the solution you present is fairly simple from the point of your needs, but what about companies that want a mix?  Some binaries included in Source Control and some not.  That's why the Project file comes in handy, since you can choose which files are included in the project, and thus Source Control. 

Chris


Chris Berg, MCAD
My Blog

4 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
ASP.NET Beta 2 web sites, SCCS and Cloaking - Kevin Cunningham Since there is no longer a project file, there's no way to "tell" the SCCS to exclude specific files or folders within the web site. To VS. ...
Exclude from Project not available for VS2005 web projects Exclude from Project not available for VS2005 web projects. I'm not one to rant or flame....so please excuse me while I do so for this ...
MSDN Visual Studio Source Control and SourceSafe Turning off ... These binaries are copied into the bin folder and should not be controlled. ... as a controlled file, and there is no way to exclude them in web sites. ...
VS 2005: Web Application Project is more Source Safe Friendly Jan 13, 2006 ... Visual Studio 2005 Web Site development model checks in bin folder assemblies when you work with Visual Source Safe. Web Application Project ...
.Text & Time - ng.asp-net-forum.starter_kits_and_source_projects ... must be a way to exclude web project bin folder from vss checkin, please! how can i make one solution with many projects in vs2005? ...
VS 2005 Web Project System: What is it and why did we do it ... Please make the Web Server allow root-relative, and or nest project or make IIS for Windows ...... So does this mean I now have to check in the bin folder? ...
Inside Microsoft: Scripting ASP.NET Builds and Deployments This aptly entitled method burrows deep into any VSS project copying whatever .... hive with the xcopy /s option since all of them go into the bin folder. ...
MSDN Visual Basic IDE How to stop vs 2005 publishing vssver2.scc! also notified the web project team about this thread - although I see nobody from that team .... Exclude VSS files in the bin folder from being published. ...
How do I convince my team to drop sourcesafe and move to SVN ... Web page summarising problems with VSS - just point people to that URL .... How can I exclude the bin folder from sourcesafe in a Visual Studio 2008 web ...
CVS, SubVersion and Visual FoxPro As a file server based system, a user needs write access to the entire VSS database folder in order to check in any file. Hence, instead of going through ...




Search This Site:










where do web part properties get stored?

non-sqlserver/express version?

problem with mail merge in vsto word project

creating ms word document with template in asp.net

can't debug while using vista under vpn connection

templates into db

adding mudules from other starter kits

how to script out my .mdf database i have in visual studio?

user not working on server

disable skin change at the page level?

ssl and the lock icon

compatibility in between 1.x and 2.0

how to write a pdf file from .net code?

reference material

treeview is not a known element (porting web site from vs2003 to vs2005)

duplication of portals

treeview in page with existing menu and sitemap

a webcontrols toolbar that doesn't work

links module

no search results since upgrade to 311

dnn 2.0

treeview xhtml transitional validation error

input string not in a correct format

how to place footer in master page?

problem with history.go(-1)

adding roles dynamically

adverageous forums error

discussion board problem can't enter new thread

run project

understanding n-tier design with commerce starter kit

 
All Times Are GMT