Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Communication between .NET 2 Assemblies and .NET 3.5 Assemblies

Communication between .NET 2 Assemblies and .NET 3.5 Assemblies

Scheduled Pinned Locked Moved C#
csharpquestionwpflearning
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    softwarejaeger
    wrote on last edited by
    #1

    Hello, i have a .NET 2 Application (Class Library) and want to interact with a .NET 3 Application (WPF), how is this possible? Of course i could reference from the WPF-App to the Class-Library (thats the normal way) but i'm must be able to initiate the .NET 3 App from the .NET 2 Application. And of course they need to be able to communicate with each other... how can i do that? Why do i want to do that? Because i want to let my logic in the .NET 2 App and create a GUI-Layer in .NET 3.5 and one in .NET 2 (if the user doesn't have 3.5 or doesn't want it or want to use mono)

    L P 2 Replies Last reply
    0
    • S softwarejaeger

      Hello, i have a .NET 2 Application (Class Library) and want to interact with a .NET 3 Application (WPF), how is this possible? Of course i could reference from the WPF-App to the Class-Library (thats the normal way) but i'm must be able to initiate the .NET 3 App from the .NET 2 Application. And of course they need to be able to communicate with each other... how can i do that? Why do i want to do that? Because i want to let my logic in the .NET 2 App and create a GUI-Layer in .NET 3.5 and one in .NET 2 (if the user doesn't have 3.5 or doesn't want it or want to use mono)

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      How about a three-part approach: - a 2.0 EXE with GUI - a 3.5 EXE with WPF-based GUI - a 2.0 DLL with all the logic, used by both EXEs. You can stuff these three projects in a single VS2008/10 solution, and set the target for each project separately. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


      S 1 Reply Last reply
      0
      • L Luc Pattyn

        How about a three-part approach: - a 2.0 EXE with GUI - a 3.5 EXE with WPF-based GUI - a 2.0 DLL with all the logic, used by both EXEs. You can stuff these three projects in a single VS2008/10 solution, and set the target for each project separately. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages


        S Offline
        S Offline
        softwarejaeger
        wrote on last edited by
        #3

        Yes, as i wrote that's the "normal" way. But i need to initiate the GUIs from the logic. Because the logic is used by a host as a "plugin" you can say. So i need to go that way. Logic (2.0)---> WPF GUI (3.5) | | V WinForms GUI (2.0) So how can i do this the easiest way?

        D 1 Reply Last reply
        0
        • S softwarejaeger

          Hello, i have a .NET 2 Application (Class Library) and want to interact with a .NET 3 Application (WPF), how is this possible? Of course i could reference from the WPF-App to the Class-Library (thats the normal way) but i'm must be able to initiate the .NET 3 App from the .NET 2 Application. And of course they need to be able to communicate with each other... how can i do that? Why do i want to do that? Because i want to let my logic in the .NET 2 App and create a GUI-Layer in .NET 3.5 and one in .NET 2 (if the user doesn't have 3.5 or doesn't want it or want to use mono)

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          I'm not sure there's any problem to begin with. Are you experiencing a problem? If so, what?

          1 Reply Last reply
          0
          • S softwarejaeger

            Yes, as i wrote that's the "normal" way. But i need to initiate the GUIs from the logic. Because the logic is used by a host as a "plugin" you can say. So i need to go that way. Logic (2.0)---> WPF GUI (3.5) | | V WinForms GUI (2.0) So how can i do this the easiest way?

            D Offline
            D Offline
            Daniel Grunwald
            wrote on last edited by
            #5

            You mean the logic must be the .exe file? Why? If you are just talking about callbacks, simply make the GUIs implement an interface defined in the logic assembly.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups