Calling WPF project from C# .Net 2.0-project

Hi all,

this is the situation:

I have a solution which contains two projects:
  • WPF project
  • 'Old' C#-project, containing windows forms
What I want to do, is call the WPF proj from the 'old' proj. How do I go about that I've added all the .Net 3.0 references to the C# proj (including WindowsFormsIntegration and the WPF proj), and I tried this in the code:

App app = new App();
app.InitializeComponent();
app.Run();

but then I get this error:

Could not load type 'WPFTest.App' from assembly 'WPTest, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.

Any ideas on what I've forgotten

Thanks in advance,
Frances


Answer this question

Calling WPF project from C# .Net 2.0-project

  • eschumac

    Please ignore my question :-)

  • Calling WPF project from C# .Net 2.0-project