Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

VS.NET2005 Excluding File /Folder from project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Shimon Sim - 13 Sep 2005 14:29 GMT
Hi
Can I exclude file  or folder from a project as it used to be in VS.NET
2003?
I have existing project and its structure was organized that class and
NUnit projects are inside of the web project folder. I tried to convert it
to VS.NET 2005 but I see all this folders in the web project structure.
Thank you,
Shimon.
Kevin Spencer - 13 Sep 2005 19:35 GMT
Right-click, "Exclude From Project".

Signature

HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

> Hi
> Can I exclude file  or folder from a project as it used to be in VS.NET
[quoted text clipped - 4 lines]
> Thank you,
> Shimon.
Shimon Sim - 13 Sep 2005 19:47 GMT
I don't have it for web projects. I did find in class project. Is it
something wrong with my system?
Shimon.
> Right-click, "Exclude From Project".
>
[quoted text clipped - 7 lines]
>> Thank you,
>> Shimon.
Kevin Spencer - 13 Sep 2005 21:35 GMT
Are you sure it IS included in the project? There is a difference between
being able to see a file, and its being included in the project.

Signature

HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

>I don't have it for web projects. I did find in class project. Is it
>something wrong with my system?
[quoted text clipped - 10 lines]
>>> Thank you,
>>> Shimon.
John Bailey - 13 Sep 2005 23:09 GMT
Kevin, have you actually DONE a web project in Visual Studio 2005?

Apparently not, the web projects in Visual Studio 2005 are file based, there
is no project file to record what is in the project and what is not.  In
other project types, this information is held in the project file.

There are special folders to hold the code files (and the names of these
folders are fixed), and these are compiled and the source not distributed if
you precompile your web, but any other folders are considered content.  Any
folders created under these special folders are treated the same way, and the
code files can be organized this way.  NUnit files should probably be held in
these folders, or better still the business rules should be implemented in a
separate class library project, and referenced.  I have not been able to get
any NUnit ASP projects to work with VS 2005, but these should definitely be
in the code directory.

> Are you sure it IS included in the project? There is a difference between
> being able to see a file, and its being included in the project.
[quoted text clipped - 13 lines]
> >>> Thank you,
> >>> Shimon.
Shimon Sim - 14 Sep 2005 14:05 GMT
So there is no other solution but to reorganize the file structure?
Shimon.
> Kevin, have you actually DONE a web project in Visual Studio 2005?
>
[quoted text clipped - 40 lines]
>> >>> Thank you,
>> >>> Shimon.
John Bailey - 14 Sep 2005 17:48 GMT
Or reorganize your projects.  If possible, move any business classes a
separate class library project.  Here you can include the NUNit tests and you
just reference the assembly from your web project.  If the code has to stay
with the web project (UI code being tested with NUNit ASP), then you will
need to organize it into the appropriate folders.

If you are using NUNit ASP successfully with Visual Studio 2005, please let
me know what changes you had to make if any.

> So there is no other solution but to reorganize the file structure?
> Shimon.
[quoted text clipped - 42 lines]
> >> >>> Thank you,
> >> >>> Shimon.
Shimon Sim - 14 Sep 2005 18:15 GMT
I do have Class Library in one project and tests in another. Just when I
originally organized folders I put them in the folder where my web project
was. It wasn't a problem for VS 2003 sine the folder was excluded from web
solution and wasn't even visible ( unless you want to see it) here I found
that you can't make it 'invisible'. I am not sure if it is compiled in the
main web assembly.
Should I just leave everything or move the folders with Class library and
test projects?

Thank  you again,
Shimon
> Or reorganize your projects.  If possible, move any business classes a
> separate class library project.  Here you can include the NUNit tests and
[quoted text clipped - 63 lines]
>> >> >>> Thank you,
>> >> >>> Shimon.
John Bailey - 14 Sep 2005 18:33 GMT
Oh, you should move them.

> I do have Class Library in one project and tests in another. Just when I
> originally organized folders I put them in the folder where my web project
[quoted text clipped - 74 lines]
> >> >> >>> Thank you,
> >> >> >>> Shimon.
Shimon Sim - 14 Sep 2005 18:58 GMT
Thanks John.
Shimon.
> Oh, you should move them.
>
[quoted text clipped - 91 lines]
>> >> >> >>> Thank you,
>> >> >> >>> Shimon.
Kevin Spencer - 14 Sep 2005 19:36 GMT
Hi John,

You got me there. I have done quite a few projects with VS.Net 2005, but
never an ASP.Net web app. So, I did some research. There are no IDE commands
for excluding a file from a project for sure. I expect there will be at some
point. It may be possible to edit the .sln file to exclude a file from
deployment. I couldn't find a comprehensive reference about the .sln file,
though.

Signature

HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Neither a follower nor a lender be.

> Kevin, have you actually DONE a web project in Visual Studio 2005?
>
[quoted text clipped - 40 lines]
>> >>> Thank you,
>> >>> Shimon.
Shimon Sim - 16 Sep 2005 02:50 GMT
Thank you Kevin for confirming that.
Shimon.
> Hi John,
>
[quoted text clipped - 50 lines]
>>> >>> Thank you,
>>> >>> Shimon.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.