473,485 Members | 1,473 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Exclude from Project not available for VS2005 web projects

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
ones we created...first) or other...those are all one time tweaks and take
but a few minutes (or hours) of work.

What I was very disappointed to discover is that the seemingly trivial
feature to "Exclude/Include from project" is no longer available for web
apps in VS2005. From what I've read so far, this is by design and it's not
coming back. I realize that more than one web developer/business presented
a compelling reason to Microsoft to remove this feature...but for some of us
I think the removal of this trivial little feature is going to be a big step
back in project administration and productivity.

This is going to make project administration for a web app of any depth a
real pain. Now, whether a file/folder is actually part of a project it's
there in the "project". That's because basically there is no "project" file
for web apps anymore. Now a web app/project is a folder and **all** files
and folders under that folder...period. For anyone who works with web of
any depth and breath you're going to see a lot of files and folders. If you
have something like a root web (i.e. portal), when you load your project
you're now possibly going to see your **entire** web site including all web
apps under the root...and on down if you have layered apps.
To further complicate things, when you build/compile the web app it now
seeks out all .Net related files in the heirarchy....whether they are part
or your "project" or not...including any third party vendor software, i.e.
Crystal. For example, I have a root web project/app and many web apps
under the root. Now to VS2005 it all one one big project...and when I build
to root web project it's trying to build and validate every web.config,
every aspx page and code behind for every web app as part of this project.
(perhaps few people have root web projects but there must also be some folks
out there how have layered web application...maybe).

I hope someone can point out that I'm vastly mistaken or that there is a
much better way to create and manage projects which have similar structure
so that I can crawl back into my cubicle and await for the joyous release of
..Net 2. But then there's always notepad for our development environment.

***IF*** this feature matters to anyone you can vote on it on the msdn
bug/suggestion feedback for "bug" FDBK13160
http://lab.msdn.microsoft.com/productfeedback
Okay, thanks for letting me whine. I'll crawl back under my rock.
Nov 19 '05 #1
4 2875
Yes, it is different. This is primarily because the compilation model in
ASP.NET 2.0 is different. The compilation step that we used to do with VS.NET
2003 is no longer necessary or pertinent because the model is to let ASP.NET
do the compilation for you at runtime and it only compiles what it should
(you can precompile but it's essentially the same as if ASP.NET were doing
it for you). So, the idea is that whatever goes into the directory is what
makes up your web application. This is different because in VS.NET 2003,
what goes into the directory is for both at compile time and at run time
which makes for a messy deployment (you need to extract the correct set of
files to deploy). Now there's no confusion. If you don't want it to be part
of your app, then don't put it there. If you want data files that aren't
compiled, there's the App_Data folder for those things. This model makes
the "Exclude File From Project" option from VS.NET 2005 moot.

-Brock
DevelopMentor
http://staff.develop.com/ballen
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 ones we created...first) or other...those are
all one time tweaks and take but a few minutes (or hours) of work.

What I was very disappointed to discover is that the seemingly trivial
feature to "Exclude/Include from project" is no longer available for
web apps in VS2005. From what I've read so far, this is by design
and it's not coming back. I realize that more than one web
developer/business presented a compelling reason to Microsoft to
remove this feature...but for some of us I think the removal of this
trivial little feature is going to be a big step back in project
administration and productivity.

This is going to make project administration for a web app of any
depth a
real pain. Now, whether a file/folder is actually part of a project
it's
there in the "project". That's because basically there is no
"project" file
for web apps anymore. Now a web app/project is a folder and **all**
files
and folders under that folder...period. For anyone who works with
web of
any depth and breath you're going to see a lot of files and folders.
If you
have something like a root web (i.e. portal), when you load your
project
you're now possibly going to see your **entire** web site including
all web
apps under the root...and on down if you have layered apps.
To further complicate things, when you build/compile the web app it
now
seeks out all .Net related files in the heirarchy....whether they are
part
or your "project" or not...including any third party vendor software,
i.e.
Crystal. For example, I have a root web project/app and many web
apps
under the root. Now to VS2005 it all one one big project...and when I
build
to root web project it's trying to build and validate every
web.config,
every aspx page and code behind for every web app as part of this
project.
(perhaps few people have root web projects but there must also be some
folks
out there how have layered web application...maybe).
I hope someone can point out that I'm vastly mistaken or that there
is a much better way to create and manage projects which have similar
structure so that I can crawl back into my cubicle and await for the
joyous release of .Net 2. But then there's always notepad for our
development environment.

***IF*** this feature matters to anyone you can vote on it on the msdn
bug/suggestion feedback for "bug" FDBK13160
http://lab.msdn.microsoft.com/productfeedback

Okay, thanks for letting me whine. I'll crawl back under my rock.


Nov 19 '05 #2
Thanks for Brock's inputs,

Hi Brad,

Also thanks for sharing your user experience and feeling with us. As for
the missing "Exclude from / Include in project" in VS2005 , and different
behavior when open web project in VS.NET from IIS, here are some of my
understanding:

1. In VS.NET 2003 when we developing ASP.NET web project, we'll have a
csproj /vbproj file associated with each project. This file contains all
the files(as well as the files' info ) contained in the project. And since
asp.net 1.x project developed with VS.NET2003 rely on the IIS server,
there'll also exist the url path of the project in IIS within the
csproj.webinfo/ vbproj.webinfo. When we include/exclude file in project,
the project file will be updated. However, this project file will become
an unnecessary item when we deploy the project into product server. Also
when we are dealing with Team development which use source control
tools(vss/ cvs...), this additional project file(also those webinfo .... )
become rather useless and may cause many problems when checking in/checking
out sources.

So in asp.net 2.0, VS.NET 2005, we have changed the compilation mode and
the project structure. When developing asp.net 2.0 project in VS.NET2005,
we no longer need project file, we just make use of a well-known folder
structure when dealing with a web project. For example, the "app_data"
sub folder in asp.net 2.0 project's root folder just contains all the
database files. And "app_code" will contains the code files(for components
or utilities) need to be compiled at runtime.

One important thing is since we no longer have project file, all the files
in the project folder(it's a normal folder on file system) are treated as
an item in the project. If we don't want it or want to exlude it, we can
just remove it from the project's folder ( for example delete it or move
to other disk folders).
2. As you also mentioned that when we open a project in IIS which contains
sub applications in the sub folder, it will display all the sub projects.
This is also because the ASP.NET 2.0 project are all based on folder
structure, so project file to indicate which files are included in the
project. However, since we no longer need IIS when developing project, we
can just developing separate web project in separate physical disk folders.
We can put all the project files into a normal folder and then open it in
VS.NET 2005 , developing pages and run it in the buildin test server.
Only at the deploy time do we need IIS. And since the new compilation mode,
what we need is just copy all the stuffs in our project's root folder into
the IIS's virtual dir. If we use the procompiled feature, we also need to
copy the procompiled assembly and resources into the "bin" folder.

So I think these new features will make the asp.net developing more
flexible , not restricted to the environment( require IIS available).
Also, we will no longer encounter erros when opening project because of the
project files(csproj/vbproj or .webinfo file) 's content are corrupt for
any reason.

How do you think of this? If you have any other questions or ideas, please
feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)


Nov 19 '05 #3
I think the change is accomodating certain environments / scenarios and
adding an incumberence to others. But I've already done my one alotted
ranted so I'm going to go and leave it at that.

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:2b**************@TK2MSFTNGXA01.phx.gbl...
Thanks for Brock's inputs,

Hi Brad,

Also thanks for sharing your user experience and feeling with us. As for
the missing "Exclude from / Include in project" in VS2005 , and different
behavior when open web project in VS.NET from IIS, here are some of my
understanding:

1. In VS.NET 2003 when we developing ASP.NET web project, we'll have a
csproj /vbproj file associated with each project. This file contains all
the files(as well as the files' info ) contained in the project. And since
asp.net 1.x project developed with VS.NET2003 rely on the IIS server,
there'll also exist the url path of the project in IIS within the
csproj.webinfo/ vbproj.webinfo. When we include/exclude file in project,
the project file will be updated. However, this project file will become
an unnecessary item when we deploy the project into product server. Also
when we are dealing with Team development which use source control
tools(vss/ cvs...), this additional project file(also those webinfo .... )
become rather useless and may cause many problems when checking
in/checking
out sources.

So in asp.net 2.0, VS.NET 2005, we have changed the compilation mode and
the project structure. When developing asp.net 2.0 project in VS.NET2005,
we no longer need project file, we just make use of a well-known folder
structure when dealing with a web project. For example, the "app_data"
sub folder in asp.net 2.0 project's root folder just contains all the
database files. And "app_code" will contains the code files(for components
or utilities) need to be compiled at runtime.

One important thing is since we no longer have project file, all the files
in the project folder(it's a normal folder on file system) are treated as
an item in the project. If we don't want it or want to exlude it, we can
just remove it from the project's folder ( for example delete it or move
to other disk folders).
2. As you also mentioned that when we open a project in IIS which contains
sub applications in the sub folder, it will display all the sub projects.
This is also because the ASP.NET 2.0 project are all based on folder
structure, so project file to indicate which files are included in the
project. However, since we no longer need IIS when developing project, we
can just developing separate web project in separate physical disk
folders.
We can put all the project files into a normal folder and then open it in
VS.NET 2005 , developing pages and run it in the buildin test server.
Only at the deploy time do we need IIS. And since the new compilation
mode,
what we need is just copy all the stuffs in our project's root folder into
the IIS's virtual dir. If we use the procompiled feature, we also need to
copy the procompiled assembly and resources into the "bin" folder.

So I think these new features will make the asp.net developing more
flexible , not restricted to the environment( require IIS available).
Also, we will no longer encounter erros when opening project because of
the
project files(csproj/vbproj or .webinfo file) 's content are corrupt for
any reason.

How do you think of this? If you have any other questions or ideas,
please
feel free to post here.

Thanks,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 19 '05 #4
> I think the change is accomodating certain environments / scenarios
and adding an incumberence to others. But I've already done my one
alotted ranted so I'm going to go and leave it at that.


This is always true as things change from release to release. I've done my
fair share of ranting on some of the new 2.0 features I disagree with. I
think one of the big problems is that much of the time Microsoft can't (or
won't) just come out and say "Sorry, it's different and it's for the better".
Instead many times Microsoft capitulates to large customer's demands rather
than doing what's best for the technology. The particular issue I'm thinking
of was the new, but then switched back to old codebehind model in 2.0. In
beta 1 they changed the codebehind model to not rely upon base classes. IMO,
this would have been a huge win to not require inheritance across two classes
(files, really -- the ASPX and .cs/.vb) that are tightly coupled. This isn't
to say you can't use inheritance for common base class features of all your
pages, I'm specifically talking about inheritance with the ASPX and its one
codebehind file. Anyway, they buckled and reverted to the same model as v1.1.
I was very upset (still am :)) that they wouldn't just come out and say "this
is a new and different and better way. It's a change, yes, but in the long
run it will be better".

Oh well, I guess you win some and you lose some :)

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

Nov 19 '05 #5

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

Similar topics

6
1221
by: HK | last post by:
I can't believe that I've bought a couple books on ASP 2.0 and nothing says how to migrate a current project. I searched google and find all kinds of intense junk about compatibility, etc. but...
5
1980
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
1
1521
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...
7
6329
by: CuriousGeorge | last post by:
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...
1
1571
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...
19
1852
by: nyhetsgrupper | last post by:
Hi, Which project type do you prefer? Is the web site or web application project the best solution? The application I am about to write is completly new so migrating from vs 2003 is not an issue,...
0
1577
by: =?Utf-8?B?a2V2aW4=?= | last post by:
using VS2005, web application projects, web deployment projects My web installer builds from the output of the web deployment project. I end up with the obj folder in my web site. How do I use...
7
5940
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
3
2381
by: Academia | last post by:
I have a vs2003 project (actually 44 of them) that I want to convert to VS2005 format. To fix a usercontrol file I created the Designer.vb file and moved the Inherited and Class ( change to...
0
7090
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
6960
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
7161
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
5418
agi2029
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,...
1
4857
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...
0
3063
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1376
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 ...
1
595
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
247
bsmnconsultancy
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...

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.