473,406 Members | 2,713 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

aspnet_compiler - exclude files

I'm using aspnet_compiler to precompile my web app for deployment.
Currently it copies all subfolders from the asp.net projects source folder
to my destination folder. I have some files I do not want it to copy when
deploying this app, is there any way to exclude them? I like to keep all
files related to my projects within that projects folder hierarchy (such as
schemas, documentation, etc), but I don't want them deployed, or to have to
remember to delete them from the deployment folder).

In the old asp.net 1.1 days we had project files like we do for C# or VB
projects. With a project file it was easy to define which files are a part
of the actual project. I don't see any way to do this in the project-less
days of asp.net 2.0.

Am I missing something obvious here?

-Brett-
Mar 27 '06 #1
7 6321
no. the aspnet_compiler.exe has no exclude feature. maybe the next release.
you could use a msbuild script that deleted them from the target dir. the
other approach (mine) is to have a dir layer above

/myproj
/deploy
/web
/docs
/unittests
/library

where /web is only the website sources.

-- bruce (sqlwork.com)

"CuriousGeorge" <br************@newsgroup.nospam> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I'm using aspnet_compiler to precompile my web app for deployment.
Currently it copies all subfolders from the asp.net projects source folder
to my destination folder. I have some files I do not want it to copy when
deploying this app, is there any way to exclude them? I like to keep all
files related to my projects within that projects folder hierarchy (such
as schemas, documentation, etc), but I don't want them deployed, or to
have to remember to delete them from the deployment folder).

In the old asp.net 1.1 days we had project files like we do for C# or VB
projects. With a project file it was easy to define which files are a
part of the actual project. I don't see any way to do this in the
project-less days of asp.net 2.0.

Am I missing something obvious here?

-Brett-

Mar 28 '06 #2
On Mon, 27 Mar 2006 14:47:54 -0800, CuriousGeorge wrote:
I'm using aspnet_compiler to precompile my web app for deployment.
Currently it copies all subfolders from the asp.net projects source folder
to my destination folder. I have some files I do not want it to copy when
deploying this app, is there any way to exclude them? I like to keep all
files related to my projects within that projects folder hierarchy (such as
schemas, documentation, etc), but I don't want them deployed, or to have to
remember to delete them from the deployment folder).

In the old asp.net 1.1 days we had project files like we do for C# or VB
projects. With a project file it was easy to define which files are a part
of the actual project. I don't see any way to do this in the project-less
days of asp.net 2.0.

Am I missing something obvious here?

-Brett-

You may look in NAnt (a build tool). It may help you with this situation.

Mar 28 '06 #3
Hi Brett,

I think Bruce's suggestion is reasonable. Also, since ASP.NET 2.0 Web
application is projectless and just exist in the form of a normal directory
on the file system, we can use a custom batch/script file to copy the files
which want to deploy to a new directory, and then open the new directory in
VS 2005 ide as website and publish it.

Regards,

Steven Cheng
Microsoft Online Community Support
==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

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



Mar 28 '06 #4
"CuriousGeorge" <br************@newsgroup.nospam> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I don't see any way to do this in the project-less days of asp.net 2.0.


You're right - Microsoft, er, removed all that lovely functionality from
ASP.NET v2...

Luckily, pressure from developers actually worked for a change, and they are
currently in the final stages of delivering an add-in to VS.NET 2005 which
includes what you require, amd much more besides.

You can download the latest beta here:
http://msdn.microsoft.com/asp.net/re...structure/wdp/

Also, you should keep a regular eye on Scott Guthrie's blog:
http://weblogs.asp.net/scottgu/archi...06/429723.aspx
He's one of the main guys at Microsoft working on this project, and is
extremely helpful.

Web deployment in ASP.NET 2 was a real pain without this add-in, but now
it's even better than it was in v1.x
Mar 28 '06 #5
Thanks Bruce. Good suggestion. I could just push the actual web code down
a layer in folder hierarchy.

-Brett-

"Bruce Barker" <br******************@safeco.com> wrote in message
news:ug******************@TK2MSFTNGP14.phx.gbl...
no. the aspnet_compiler.exe has no exclude feature. maybe the next
release. you could use a msbuild script that deleted them from the target
dir. the other approach (mine) is to have a dir layer above

/myproj
/deploy
/web
/docs
/unittests
/library

where /web is only the website sources.

-- bruce (sqlwork.com)

"CuriousGeorge" <br************@newsgroup.nospam> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I'm using aspnet_compiler to precompile my web app for deployment.
Currently it copies all subfolders from the asp.net projects source
folder to my destination folder. I have some files I do not want it to
copy when deploying this app, is there any way to exclude them? I like
to keep all files related to my projects within that projects folder
hierarchy (such as schemas, documentation, etc), but I don't want them
deployed, or to have to remember to delete them from the deployment
folder).

In the old asp.net 1.1 days we had project files like we do for C# or VB
projects. With a project file it was easy to define which files are a
part of the actual project. I don't see any way to do this in the
project-less days of asp.net 2.0.

Am I missing something obvious here?

-Brett-


Mar 28 '06 #6
Ooh, this looks tempting. Thanks for the links Mark, this may be just what
I need...

-Brett-

"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
"CuriousGeorge" <br************@newsgroup.nospam> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I don't see any way to do this in the project-less days of asp.net 2.0.


You're right - Microsoft, er, removed all that lovely functionality from
ASP.NET v2...

Luckily, pressure from developers actually worked for a change, and they
are currently in the final stages of delivering an add-in to VS.NET 2005
which includes what you require, amd much more besides.

You can download the latest beta here:
http://msdn.microsoft.com/asp.net/re...structure/wdp/

Also, you should keep a regular eye on Scott Guthrie's blog:
http://weblogs.asp.net/scottgu/archi...06/429723.aspx
He's one of the main guys at Microsoft working on this project, and is
extremely helpful.

Web deployment in ASP.NET 2 was a real pain without this add-in, but now
it's even better than it was in v1.x

Mar 28 '06 #7
"CuriousGeorge" <br************@newsgroup.nospam> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
Ooh, this looks tempting. Thanks for the links Mark, this may be just
what I need...


Once you've sorted out the ability to exclude files and/or folders from the
deployed code, you'll love the ability to replace entire sections of
web.config... :-)

For me, the biggest advantage of this is to automatically replace my
database connection strings between DEV, UAT and live environments at the
flick of a switch!
Mar 28 '06 #8

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

Similar topics

3
by: John Field | last post by:
Hello, Is it possible to exclude certain files in a wx.FileDialog, so that the user won't see them and can't select them with the mouse in de File open window? I was thinking of somehow...
1
by: VijayKani | last post by:
How to exclude files from a VS.Net project through code when they are built (especially in VB.Net and Asp.Net and C#) -- Thanks
0
by: VijayKani | last post by:
How to exclude files from project through code in VS.Net when they are built. especially in (C#,ASP.NET, VB.NET) -- Thanks
1
by: Chuck Ritzke | last post by:
Is it possible to exclude certain files from the "Copy Project" command, like can be done in FrontPage when publishing a web? How? This would be very convenient. For example, I have settings in...
1
by: John Dalberg | last post by:
In VS 2003, I was able to exclude full folders from a project but I can't do the same in VS 2005. I can exclude files but not folders. I prefer to exclude at the folder level because the folder...
1
by: robert | last post by:
I am struggling with what I thought would be a very basic concept. I have a web application which I have migrated to .NET 2.0. Now I understand that there is no such thing as excluding files from...
3
by: KJ | last post by:
Hello All, Can someone please explain what these .exclude/.include files are? They only show up in some web site projects, and it seems to be related to deleting. Any ideas?
1
by: AntiChrist | last post by:
In VS 2005 if you exclude files from a project, it actually renames the file to filename.exclude. In previous versions, it just left the file alone but excluded it. If you have a very large...
0
by: =?Utf-8?B?V2lsbGlhbSBGb3N0ZXI=?= | last post by:
Good evening all, I was wondering if anyone knows how to exclude files from an OpenFileDialog object; for example if I want to find all *.TXT files except those starting with A; usually to find...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...

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.