-
I want to be able to call methods from a project that targets TFM All goes well until I run into any dependencies on WindowsBase. In this case System.Windows.Point. I've tried various methods trying to reference or install WindowsBase in my notebook without success. Although I was surprised that I got as far as I did. I am assuming that .net interactive just doesn't support .Net core in its entirety. I decided to try the approach with an embedded C# kernel running in my app and connecting to it through named pipes. However, the wpf-connect example code does not work with the current release. (See #3146 ) I'm looking for any suggestions using either of the two approaches I'm trying to take. My next step will be digging into the code and docs to try and figure out how to update the code in my app (and the example) to work with the current version of the pipes API. But I'm running down the clock for how much time I have to evaluate tooling for the project I want to use this on. So any help towards the most efficient path forward would be appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I think this issue is because .NET Interactive is not a .NET Framework application. It currently targets .NET 7. A proxy kernel would need to be loaded if you want to host it in a .NET Framework application. #3144 could help to address this. I'll take a look at the WPF sample. |
Beta Was this translation helpful? Give feedback.
After updating I am able to connect to my app and execute using pipes!
I'm also able to execute the code by importing the relevant .dlls. I just had to reference the correct WindowsBase:
#r "C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\7.0.10\WindowsBase.dll"
Also, I suggest in App.xaml.cs the line:
be changed to
That will allow it to work with an a…