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- 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-
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.
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.
"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
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-
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
"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! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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
|
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
|
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...
|
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...
|
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...
|
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?
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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)...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
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....
|
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
|
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...
| |