By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,089 Members | 1,952 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,089 IT Pros & Developers. It's quick & easy.

Dumb question: how to add a new project using the same existing folder?

P: n/a
I would like to add a new VB.NET project using the same folder being used by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill
Nov 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
So, first of all, VS projects treat files in their directories as belonging to them, and for this and other reasons (for example, handling output directories) putting two project files in the same directory is not recommended.

You can still add files from anyplace on your drive into your project simply by using "Add Existing Item."

However, the truly elegant way to reuse code is to take those commonly-used forms (and whatever else code is common) and place it all in a Class Library project which any other project can reference.

--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Bill Nguyen
Posted At: Monday, November 21, 2005 11:58 AM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Dumb question: how to add a new project using the same existing folder?
Subject: Dumb question: how to add a new project using the same existing folder?
I would like to add a new VB.NET project using the same folder being used by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill
Nov 23 '05 #2

P: n/a
Thanks for your response, Matt.

Bill
<Ma***********@feedback.microsoft.com> wrote in message
news:Ok**************@TK2MSFTNGP10.phx.gbl...
So, first of all, VS projects treat files in their directories as
belonging to them, and for this and other reasons (for example, handling
output directories) putting two project files in the same directory is not
recommended.

You can still add files from anyplace on your drive into your project
simply by using "Add Existing Item."

However, the truly elegant way to reuse code is to take those
commonly-used forms (and whatever else code is common) and place it all in
a Class Library project which any other project can reference.

--Matt Gertz--*
VB Compiler Dev Lead

-----Original Message-----
From: Bill Nguyen
Posted At: Monday, November 21, 2005 11:58 AM
Posted To: microsoft.public.dotnet.languages.vb
Conversation: Dumb question: how to add a new project using the same
existing folder?
Subject: Dumb question: how to add a new project using the same existing
folder?
I would like to add a new VB.NET project using the same folder being used
by
another project so that I can share several forms already creaded by the
other project. However, .NET created a new folder using whatever project
name I supplied.
Is there a work around for this?

Thanks

Bill

Nov 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.