473,766 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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...
Dec 6 '06 #1
3 8308

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.

Dec 7 '06 #2
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.Busine ssLogic and Security.DataAc cess. 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.
Dec 11 '06 #3
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.

Dec 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
1543
by: Bennett Haselton | last post by:
If I create a new C# Web Project in Visual Studio and add this to the Page_Load method for WebForm1: Response.Write("firsttime"); then hitting F5 to debug the project of course shows the WebForm with "firsttime" on the page. But if I then change it to Response.Write("secondtime") and hit F5, the changes don't take effect -- the WebForm still opens and displays
10
1644
by: Eric G. Harrison | last post by:
We have a project with many other projects referenced (all of which are referenced at the project level and are included in the solution). Frequenly, if we make a change in project A (such as adding a property, or even simply changing a line of code), a form in project B will then show 10 or more "object such-and-such is not defined". To fix this problem we check out the form in project B and 90% of the time that fixes it (but nothing changes...
4
2250
by: Petterson Mikael | last post by:
Hi, We are still using RoseRT to generate c++ code. Has anyone out there gone from using this tool another more convetional tool? I am interested in all hints and pointers. cheers, //mikael
5
5911
by: Matt S. | last post by:
I have been using C# 2005 Express to make class libraries for use in another software program. Each version of this software has a different .NET API, so maintaining multiple solutions of the same project for each version of the software is neccessary. How can I do a save as of the entier project? THe option seems to exist to save as the .sln file, but that doesn't bring all the resources, source files, and other files with it. ...
2
3446
by: Bob Altman | last post by:
Hi, My VB project (VS 2005) has a post-build event that runs a program that creates an executable file in the target directory (that is, the same folder that contains the normal build results). However, since VS (or, more specifically, MSBuild) doesn't know about this new executable, it isn't deleted when I select Build->Clean Solution. How do I tell my VB project about this file so that it gets deleted when I "clean" the build...
1
1350
by: Gotch | last post by:
Hi, my VS is messing up... Suddenly, when I try building just one project (selecting it, pushing right buttn, then build... as I always have done) it builds the entire solution... It started behaving this way suddenly, a couple minutes before it was ok and I didn't change anything... What's wrong???
1
1464
by: Ringo | last post by:
If I create a program in c# express edition, then try to open it with the full edition I get a "not a valid solution" error. I can click on the csproj file and everything works fine. I can even do a "clean solution" and "build solution" with no errors, but then if I click on the .sln file I still get the error. anybody know what to do about this? Thanks Ringo
0
950
by: TC | last post by:
When I use the Quick Find feature in Visual Studio on my PC, I have the option to look within the "Entire Solution". However, I just used an office PC to work on the same solution, and on that computer, "Entire Solution" is not a search option. The two computers have the same version of Visual Studio installed (2005 v8.0). Presumably, there is a configuration setting somewhere that has disabled "Entire Solution" on the office PC. Can...
8
5774
by: plenty900 | last post by:
Hello, I'm trying to build a large project, and I've found that when something doesn't compile properly, and I attempt to re-build it, Visual C++ Express doesn't make a new attempt. So then I try to clean the solution, but this has literally no effect because when I try to build after that, again no attempt to made to build. Can someone tell me to really to clean the solution,
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9837
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8833
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6651
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5279
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3929
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2806
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.