473,725 Members | 2,220 Online
Bytes | Software Development & Data Engineering Community
+ 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....wh ether 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...m aybe).

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 2888
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....wh ether 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...m aybe).
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.m icrosoft.com> wrote in message
news:2b******** ******@TK2MSFTN GXA01.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
1247
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 nothing with a few simple steps to upgrade the project. Maybe we won't be using all the new classes and that's fine, but I just want to get a few web projects running under VS2005 so new code can be written in VS2005. What the heck do I do? ...
5
1992
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 VS.Net 2005 to render the associated .resx and .vb file inoperative. detail... I converted an asp 1.1 vb.net app using the vs2005 conversion wizard and then retested the app after conversion.
1
1540
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 icon has visual indicator. John Dalberg
7
6359
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 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...
1
1590
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 ASP.net web site you may have thousands of images. In our case we have millions because the nature of the site is that users upload their photo albums to share with other users. I NEVER want the IDE to enumerate these files for any reason, including...
19
1882
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, but it has to be easy to deploy the application (precompiled, I don't want to give away my source)
0
1589
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 an exclude filter to stop this (obj does not work)? Better yet can I have the deployment project exclude files not part of the project. I assume that it is simply working on the directory structure. -- kevin...
7
5984
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 it? If not, how do I have to change my deployment strategy? Thanks!
3
2407
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 partial class) lines to it so it started with: <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()_ Partial Class UserControl1
0
8888
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9257
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9176
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8097
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6702
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6011
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3221
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 we have to send another system
3
2157
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.