473,811 Members | 4,039 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why Web Deployment Project deploys *.csproj files?



Hi,

When I use Web Deployment Project to create a deployment image of my web
site, It includes un-necessaty files such as *.csproj files.

Can I disable the deployment of *.csproj files?

Thank you,

Max


Oct 1 '07 #1
4 4185
"Max2006" <al*******@news group.nospamwro te in message
news:Oj******** ******@TK2MSFTN GP06.phx.gbl...
When I use Web Deployment Project to create a deployment image of my web
site, It includes un-necessaty files such as *.csproj files.

Can I disable the deployment of *.csproj files?

1) Right-click on the WDP project in your solution and select "Open Project
File"

2) Scroll right down to the remmed out section at the bottom

3) Un rem the <Target Name="AfterBuil d" section

4) Amend it so that it looks as follows:

<Target Name="AfterBuil d" Condition="'$(C onfiguration)|$ (Platform)' ==
'Release|AnyCPU '">
<Delete Files="$(Output Path)\MyProject .csproj" />
<Delete Files="$(Output Path)\MyProject .csproj.user" />
</Target>

Obviously, change MyProject.cspro j to the actual name of your project... :-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 1 '07 #2
Thank you Mark for help.

Is there any reason that WDP actually deploys *.csproj files?

Regards,
Max
"Mark Rae [MVP]" <ma**@markNOSPA Mrae.netwrote in message
news:%2******** ********@TK2MSF TNGP06.phx.gbl. ..
"Max2006" <al*******@news group.nospamwro te in message
news:Oj******** ******@TK2MSFTN GP06.phx.gbl...
>When I use Web Deployment Project to create a deployment image of my web
site, It includes un-necessaty files such as *.csproj files.

Can I disable the deployment of *.csproj files?


1) Right-click on the WDP project in your solution and select "Open
Project File"

2) Scroll right down to the remmed out section at the bottom

3) Un rem the <Target Name="AfterBuil d" section

4) Amend it so that it looks as follows:

<Target Name="AfterBuil d" Condition="'$(C onfiguration)|$ (Platform)' ==
'Release|AnyCPU '">
<Delete Files="$(Output Path)\MyProject .csproj" />
<Delete Files="$(Output Path)\MyProject .csproj.user" />
</Target>

Obviously, change MyProject.cspro j to the actual name of your project...
:-)
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 1 '07 #3
"Max2006" <al*******@news group.nospamwro te in message
news:ez******** ******@TK2MSFTN GP03.phx.gbl...
Is there any reason that WDP actually deploys *.csproj files?
Don't know...

WDP is a superb tool, but it's only about half-finished, IMO...

E.g. if you exclude a file from the project, it still deploys it...

If you exclude a code file from the project, the WDP no longer compiles...

Etc...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 1 '07 #4
Thanks for Mark's nice tips.

Hi Max,

I think the reason "web deployment project include the csproj" files is it
is originally designed to target the ASP.NET 2.0 "web site" project model
which is project less(doesn't have project files). And the "Web application
Project" is started abit later after the "Web Deployment project", and
surely the WDP may have some drawbacks when dealing with "Web application
project"

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Mark Rae [MVP]" <ma**@markNOSPA Mrae.net>
In-Reply-To: <ez************ **@TK2MSFTNGP03 .phx.gbl>
Subject: Re: Why Web Deployment Project deploys *.csproj files?
Date: Mon, 1 Oct 2007 18:07:59 +0100
>
"Max2006" <al*******@news group.nospamwro te in message
news:ez******* *******@TK2MSFT NGP03.phx.gbl.. .
>Is there any reason that WDP actually deploys *.csproj files?

Don't know...

WDP is a superb tool, but it's only about half-finished, IMO...

E.g. if you exclude a file from the project, it still deploys it...

If you exclude a code file from the project, the WDP no longer compiles...

Etc...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Oct 2 '07 #5

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

Similar topics

7
2382
by: SpookyET | last post by:
/FooProject /bin (release) /doc /src (only *.cs) /temp (obj files) /test (debug) /build /Visual Studio 2003 /Visual Studio 2005
3
2260
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL 'http://Localhost:/MyProject'. The two need to map to the same server location. HTTP Error 404: Not Found." I have tried fixing this using both of these KB articles and usenet advises, still problem not solved:
0
1324
by: dhnriverside | last post by:
Hi peeps I'm trying to access my project/solution files from Visual C#. The solution has been moved from my development server to the client's server, and I'm taking my machine in with me to the client. The problem is that the solution file says it cant find the projects. The sln file has a project as been at... http://server/webapp/webapp.csproj
4
2893
by: Brad | last post by:
I'm not one to rant or flame....so please excuse me while I do so for this once. I've now spent a bit of time working with VS2005 beta 2 to see how it functions for web development, especially how our current extensive number of .Net 1.1 web apps convert to it. After a week's time I dont's mind the converted app code that was broken and had to be changed, due to deprecation, new framework classes (some of which have names identical to...
0
1043
by: Brad Wood | last post by:
I've reinstalled my operating system and now want to reopen a web service project. Here is the URLPath in my project's .webinfo file: "http://localhost/DriverService/DriverWebService.csproj" So I create a new virtual directory in IIS, name it "DriverService", and set it's local path to the directory containing my .csproj (and other project files). I verified that IIS is working by creating a simple page in wwwroot and calling...
1
2041
by: mndang | last post by:
Hi All, This may have been posted before and such, but I tried a few solutions on the web but to no avail. Problem: I have a web projects (not Web Application Project) with many project references and a few 3rd party references. The 3rd party references are automatically added to the web.config file as another <add assembly/element via the VS.NET 2005 IDE.
2
2167
by: John Dalberg | last post by:
I have a few user controls in ascx files. I copied these files to the deployment server. However the server gives error message that the code behind (cs) are missing. I thought all cs files are compiled in the dll. The web pages work if I copied the cs files. Why do I need to copy them over? John Dalberg
0
1288
by: ping235 | last post by:
Recently, i am busying myself on a project that support both the Full ..NET Framework 2.0 and .NET Compact Framework 2.0, with the same set of c# code, but have different project properties and references. The question is how could I achieve this, should i create separate project for each purpose? The most simple approach is creating two separate projects, but i'll must maintain two sets of codes.
0
1097
by: Andy B | last post by:
I am using web deployment projects combined with web application projects in Visual Studio 2005. I have some projects in the solution called Main and InHim. I noticed some wierd compiled output in these projects. I don't quite understand why they are in the final compiled output and what they do exactly. In the Main project I have: 1. Events : It contains an uncompiled version of a dataSet. 2. News : it contains an uncompiled version of a...
0
9724
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
9604
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
10644
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10394
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9201
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...
1
7665
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
4336
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
3863
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3015
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.