473,322 Members | 1,699 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,322 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 6309
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
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.