How to share WinForms and code between 2 projects

Posted by Richard Bysouth on Stack Overflow See other posts from Stack Overflow or by Richard Bysouth
Published on 2010-06-07T16:05:49Z Indexed on 2010/06/07 16:22 UTC
Read the original article Hit count: 345

Hi

I have a working Windows Forms app (split into an EXE and a few DLLs). Now I've been asked to look at creating another app (MyAppLite) that has only a very small subset of the functionality. Think of it as similar to MS Word Viewer vs. MS Word.

Everything that I need to build MyAppLite is contained in the main solution - essentially I need to use a couple of the WinForms and whatever bits in the DLLs they call into.

What would be the best way to do this?

I was thinking of creating another Project in my solution for MyAppLite, then adding the necessary source files as links (using Add Existing Item > Add As Link in Solution Explorer).

I definitely wouldn't want to maintain 2 copies of the source code.

FYI it's a .NET 2.0 VB app, using VS2008.

thanks

Richard

© Stack Overflow or respective owner

Related posts about vb.net

Related posts about visual-studio