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 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
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
"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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: SpookyET |
last post by:
/FooProject
/bin (release)
/doc
/src (only *.cs)
/temp (obj files)
/test (debug)
/build
/Visual Studio 2003
/Visual Studio 2005
|
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:
|
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
|
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...
|
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...
| |
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.
|
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
|
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.
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |