473,320 Members | 2,193 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,320 software developers and data experts.

Excluding files

Hi,

Am currently in the process of migrating a whole heap of v1.1 ASP.NET
solutions to v2.0, and would be interested to know what others are doing
about excluding files from projects.

I maintain several music websites which contain lots of static binaries
(newsletters, gig photos etc) which, once they are posted, never change.

In v1.1, I was able to exclude these files from the project so that they
wouldn't get deployed to the live site every time I made a change. However,
in v2, when you select a file and click "Exclude from project", the file
gets renamed with a ".exclude" extension which means that IIS can no longer
find it during testing etc.

The v1.1 functionality here worked perfectly in that the file was excluded
from the project so that it didn't get unnecessarily redeployed every time,
but it was not renamed so that IIS could still find it when requested. It's
a real nuisance when making a small change to a site to be forced to upload
megs and megs of binaries as well.

What is the accepted wisdom for overcoming this in ASP.NET 2? I understand
that there was a problem surround file exclusion during the the beta stage
of ASP.NET 2, but I had thought that it was fixed in the final release.

Mark
Dec 28 '05 #1
4 1526
The problem is due to a fundamental change in how ASP.NET applications are
managed & compiled. In v1.1 the "exclude" option for for the compilation
that VS.NET 2003 was doing. In v2.0, VS.NET 2005 no longer doing a compilation.
The new model is that ASP.NET does the entire compilation (if you're using
on-demand compilation). This then changes the semantics of a project and
what goes into the project folder, IMO. What goes into the ASP.NET project
folder is what should be on your website, thus the notion of exclude really
should be "don't put it in the project folder". I know VS.NET 2005 added
an "exclude" option, but I think it's because too many people didn't embrace
the new model, thus they had to do something to support the notion of "excluding"
items. I guess the idea is that if it ends in .exclude then you should have
some sort of script that filters those files prior to deployment.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

Am currently in the process of migrating a whole heap of v1.1 ASP.NET
solutions to v2.0, and would be interested to know what others are
doing about excluding files from projects.

I maintain several music websites which contain lots of static
binaries (newsletters, gig photos etc) which, once they are posted,
never change.

In v1.1, I was able to exclude these files from the project so that
they wouldn't get deployed to the live site every time I made a
change. However, in v2, when you select a file and click "Exclude from
project", the file gets renamed with a ".exclude" extension which
means that IIS can no longer find it during testing etc.

The v1.1 functionality here worked perfectly in that the file was
excluded from the project so that it didn't get unnecessarily
redeployed every time, but it was not renamed so that IIS could still
find it when requested. It's a real nuisance when making a small
change to a site to be forced to upload megs and megs of binaries as
well.

What is the accepted wisdom for overcoming this in ASP.NET 2? I
understand that there was a problem surround file exclusion during the
the beta stage of ASP.NET 2, but I had thought that it was fixed in
the final release.

Mark

Dec 28 '05 #2
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
The problem is due to a fundamental change in how ASP.NET applications are
managed & compiled. In v1.1 the "exclude" option for for the compilation
that VS.NET 2003 was doing. In v2.0, VS.NET 2005 no longer doing a
compilation. The new model is that ASP.NET does the entire compilation (if
you're using on-demand compilation). This then changes the semantics of a
project and what goes into the project folder, IMO. What goes into the
ASP.NET project folder is what should be on your website, thus the notion
of exclude really should be "don't put it in the project folder". I know
VS.NET 2005 added an "exclude" option, but I think it's because too many
people didn't embrace the new model, thus they had to do something to
support the notion of "excluding" items. I guess the idea is that if it
ends in .exclude then you should have some sort of script that filters
those files prior to deployment.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Hi,

Am currently in the process of migrating a whole heap of v1.1 ASP.NET
solutions to v2.0, and would be interested to know what others are
doing about excluding files from projects.

I maintain several music websites which contain lots of static
binaries (newsletters, gig photos etc) which, once they are posted,
never change.

In v1.1, I was able to exclude these files from the project so that
they wouldn't get deployed to the live site every time I made a
change. However, in v2, when you select a file and click "Exclude from
project", the file gets renamed with a ".exclude" extension which
means that IIS can no longer find it during testing etc.

The v1.1 functionality here worked perfectly in that the file was
excluded from the project so that it didn't get unnecessarily
redeployed every time, but it was not renamed so that IIS could still
find it when requested. It's a real nuisance when making a small
change to a site to be forced to upload megs and megs of binaries as
well.

What is the accepted wisdom for overcoming this in ASP.NET 2? I
understand that there was a problem surround file exclusion during the
the beta stage of ASP.NET 2, but I had thought that it was fixed in
the final release.

Mark


Dec 28 '05 #3
"Brock Allen" <ba****@NOSPAMdevelop.com> wrote in message
news:b8**************************@msnews.microsoft .com...
I guess the idea is that if it ends in .exclude then you should have some
sort of script that filters those files prior to deployment.


And how would that help during testing / debugging...?
Dec 28 '05 #4
>> I guess the idea is that if it ends in .exclude then you should have
some sort of script that filters those files prior to deployment.

And how would that help during testing / debugging...?


I'm not sure that it does.

-Brock
DevelopMentor
http://staff.develop.com/ballen
Dec 28 '05 #5

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

Similar topics

10
by: Jon Maz | last post by:
Hi, Curiosity - when you right-click on a file in the VS.Net Solution Explorer and select "Exclude from Project", it continues to be shown in the Solution Explorer as a sort of ghostly outline...
8
by: ric | last post by:
Hi, Is there a way to exclude fields in a query other than just including the ones you want. If there are 20 fields and you want to see all but 3, it would be a lot easier to exclude the 3. ...
7
by: Ash Moollan [InfoMaster] | last post by:
Hi there, I am using NDOC to generate docs for one C# project which I wrote. My assembly has some public classes that are not meant to be used by others and I have not documented them. I would...
6
by: Al-Burak | last post by:
I have a class which only purpose is to provide services to a variety of classes in other files. The 'manipulator' class is aware of the other classes only because the header files have been...
1
by: Norman Crandall | last post by:
I have a directory with about 20,000 other directories and files in it. I need it in the root directory of the web application in order to write to it. However, when I need to build the...
2
by: anon2005 | last post by:
Hi all, OK, I get the whole new compilation model in ASP.NET 2.0. I can see how it's better in team environments and overall, not requiring a project file is useful. The big snags I'm...
1
by: lukemack | last post by:
Hi, Does anyone know how to exclude certain files from a remote xdebug session? I am only interested in one file but every file involved in generating the page is included in the debug session...
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:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
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...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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

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.