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

B

Bill Nguyen

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
 
M

Matthew.Gertz

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top