Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > VS.NET 2005 "Clean Solution" does not work for web project

Reply
Thread Tools

VS.NET 2005 "Clean Solution" does not work for web project

 
 
Nick Gilbert
Guest
Posts: n/a
 
      12-06-2006
Hi,

In my VS.NET 2005, if I choose Build > Clean Solution, the BIN folder is
not touched. Shouldn't it delete all the dll and pdb files in that
folder first? Instead, I'm finding I have to do it manually.

Also, when I change from Debug to Release, all the pdb files remain in
the bin folder. Shouldn't these be deleted automatically?

Please let me know what the "Clean Solution" is supposed to do (if it's
not cleaning the bin folder) or how to fix this problem.

Thanks!

Nick...
 
Reply With Quote
 
 
 
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-07-2006

Hello Nick,

As for the "Clean Solution", it will clean/remove all the originally
compiled/built intermediate or full output files(exe or dll).

http://msdn2.microsoft.com/ru-ru/lib...7h(VS.80).aspx

For example, if you have a solution that contains two project, one winform
and another class library project, winform reference the class library's
output assembly. Thus, no matter you build the class library project first,
or winform project first(or both) and choose "Clean Solution", it will
remove the output files of both the winform and class library projects(exe
and dll). and next time you "Build Solution", it will build the two
projects together.

For your scenario, your solution contains an ASP.NET 2.0/vs 2005
application. This is a paricular case because ASP.NET 2.0 project is quite
different from ASP.NET 1.1/VS 2003 project, it use dynamic compilation, so
in the new website project, it will not produce any output files in VS 2005
IDE(when you build or rebuild the ASP.NET 2.0 website project). And the bin
directory only use to hold some private referenced assemblies and does not
contains any output content. That's why "Clean Solution" does not modify
the "bin" dir in ASP.NET 2.0 website project. Therefore, you haven't missed
anything and this is the expected behavior.

In addition, here are some web articles describe the new ASP.NET 2.0
project model:

#VS 2005 Web Project System: What is it and why did we do it?
http://weblogs.asp.net/scottgu/archi...21/423201.aspx

#Debug and Release Builds in ASP.NET 2.0
http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx

Hope this helps some.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead



==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.



Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================



This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
 
Nick Gilbert
Guest
Posts: n/a
 
      12-11-2006
Steven,

Thanks, but my 2005 solution actually contains quite a number of
projects which all result in a DLL being produced when I compile. Most
of these are as a result of the n-tier architecture of the structure so
I have projects like Security.BusinessLogic and Security.DataAccess. It
is my understanding that "clean solution" should remove all the files
that normally get replaced if you do a full recompile. Sometimes I find
that I manually need to delete all these DLLs to force it to recompile
all of the DLLs.

Nick...

Steven Cheng[MSFT] wrote:
> Hello Nick,
>
> As for the "Clean Solution", it will clean/remove all the originally
> compiled/built intermediate or full output files(exe or dll).
>
> http://msdn2.microsoft.com/ru-ru/lib...7h(VS.80).aspx
>
> For example, if you have a solution that contains two project, one winform
> and another class library project, winform reference the class library's
> output assembly. Thus, no matter you build the class library project first,
> or winform project first(or both) and choose "Clean Solution", it will
> remove the output files of both the winform and class library projects(exe
> and dll). and next time you "Build Solution", it will build the two
> projects together.
>
> For your scenario, your solution contains an ASP.NET 2.0/vs 2005
> application. This is a paricular case because ASP.NET 2.0 project is quite
> different from ASP.NET 1.1/VS 2003 project, it use dynamic compilation, so
> in the new website project, it will not produce any output files in VS 2005
> IDE(when you build or rebuild the ASP.NET 2.0 website project). And the bin
> directory only use to hold some private referenced assemblies and does not
> contains any output content. That's why "Clean Solution" does not modify
> the "bin" dir in ASP.NET 2.0 website project. Therefore, you haven't missed
> anything and this is the expected behavior.
>
> In addition, here are some web articles describe the new ASP.NET 2.0
> project model:
>
> #VS 2005 Web Project System: What is it and why did we do it?
> http://weblogs.asp.net/scottgu/archi...21/423201.aspx
>
> #Debug and Release Builds in ASP.NET 2.0
> http://odetocode.com/Blogs/scott/arc...1/15/2464.aspx
>
> Hope this helps some.
>
> Sincerely,
>
> Steven Cheng
>
> Microsoft MSDN Online Support Lead
>
>
>
> ==================================================
>
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscripti...ult.aspx#notif
> ications.
>
>
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> http://msdn.microsoft.com/subscripti...t/default.aspx.
>
> ==================================================
>
>
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>

 
Reply With Quote
 
Steven Cheng[MSFT]
Guest
Posts: n/a
 
      12-12-2006
Thanks for your followup Nick,

Yes, I understand your scenario that there are several class library
projects which produces middle tier component assemblies referenced by
front-end(asp.net) web application. And you want to make sure they get
updated after those class libraries are recompiled.

Actually, this does be the case in VS 2005. When you clean the solution(or
choose rebuild), the visual studio will first try clean any compiled or
partial compiled assemblies in the solution/projects, for those class
library projects, the output assemblies will be removed. However, for
ASP.NET 2.0 web project, since it does not have any output(assembly or
exe), so "clean solution" or "rebuild solution" will not remove any
component in ASP.NET 2.0 project. But when you have recompiled any class
library projects that is referenced by the ASP.NET 2.0 projects, the
referenced assemblies(in bin directory) will be automatically updated, you
can check its timestamp to verify this. Therefore, you do not need to
manually remove the referenced assembly in bin dir and readd if(make sure
you add the reference through project rather than directly pickup the
assembly file).


Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why does my webservice web reference not work in aspx project?! Eskimo ASP .Net Web Services 7 03-03-2008 06:17 PM
VS 2005 Web Site Project vs Web Application Project rmgalante@galaware.com ASP .Net 0 01-28-2008 08:18 PM
Upgrade vs 2003 project to vs 2005 project Aijun ASP .Net 0 01-11-2008 07:20 PM
Converting VS 2005 Web Site Project to VS 2005 Web Application Project ITistic ASP .Net 2 08-21-2007 08:56 PM
Converting VS.NET 2003 web project to VS.NET 2005 web project =?Utf-8?B?anJldHQ=?= ASP .Net 1 09-26-2006 09:56 AM



Advertisments