Regarding 2 Projects RRS feed

  • Question

  • I have two projects Project 1(P1) and Project2 (P2).  P1 has the UI part and P2 has the logic part. There is a button on P1. On the click event of the button the logic will appear which is in the P2.

    How can I link the ".CS" files (which are the logic in the P2) on the button click event of P1??

      Basically These are XAML Code.
    Monday, July 21, 2014 6:02 AM


  • First I'd say this is the wrong forum for your question. It has nothing to do with Integration...

    Second, you might reconsider your project setup. If you use WinForms or XAML, Visual Studio handles all files and automatically splits the visual part from the logic-only part. To separate those files might also corrupt VS, so maybe you'll be in trouble with the visual form editors.

    Third, you can add files to a project as link only. In the solution explorer, right click the target folder and select "add existing item", then point to the file containing the logic part, and instead of "add", select the small down-arrow beside this button and choos "add as link".

    • Marked as answer by Anna Cc Sunday, July 27, 2014 10:18 AM
    Monday, July 21, 2014 1:33 PM