Author Topic: How to use the same file at Multiple Projects?  (Read 2738 times)

0 Members and 1 Guest are viewing this topic.

ruruhehe

  • Guest
How to use the same file at Multiple Projects?
« on: April 06, 2010, 06:14:11 AM »

I have two VB.net Projects A & B
I want A & B  share one file (FrmMain.vb)
But if I add this file from Project A to Project B
It will save a copy to B's directory,instead of share this file at A's directory.
What should I do?


Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How to use the same file at Multiple Projects?
« Reply #1 on: April 06, 2010, 06:56:09 AM »

Sorry, I don't understand the question.

Having 2 Projects in one file is not possible.

You can have a solution with multiple Projects,

and you can share Files between different Projects.

You may need to refine your question.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

ruruhehe

  • Guest
Re: How to use the same file at Multiple Projects?
« Reply #2 on: April 06, 2010, 07:43:36 AM »

Sorry, I don't understand the question.

Having 2 Projects in one file is not possible.

You can have a solution with multiple Projects,

and you can share Files between different Projects.

You may need to refine your question.


Do you mean to say:

Only the projects in one solution, can share a file?

I want share a file between different solution.


David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: How to use the same file at Multiple Projects?
« Reply #3 on: April 06, 2010, 09:13:35 AM »
I think he wants to reference the file, and needs to set local copy to false
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

ruruhehe

  • Guest
Re: How to use the same file at Multiple Projects?
« Reply #4 on: April 06, 2010, 09:24:02 AM »
I think he wants to reference the file, and needs to set local copy to false


reference dll file and don't copy to local ? no no.
I want to share a frm.vb file between different solutions.


Draftek

  • Guest
Re: How to use the same file at Multiple Projects?
« Reply #5 on: April 06, 2010, 09:57:25 AM »
Just make the form into a project and add it to the solution.

Glenn R

  • Guest
Re: How to use the same file at Multiple Projects?
« Reply #6 on: April 06, 2010, 05:47:59 PM »
Ditto.

ruruhehe

  • Guest
Re: How to use the same file at Multiple Projects?
« Reply #7 on: April 06, 2010, 09:33:33 PM »

 :lol:

Add existing file as link. OK!