Skip to content

Support for WPF in current version? #3148

Answered by Awsmolak
Awsmolak asked this question in Q&A
Discussion options

You must be logged in to vote

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:

//Load WPF app assembly 
await csharpKernel.SendAsync(new SubmitCode(@$"#r ""{typeof(App).Assembly.Location}""
using {nameof(WpfConnect)};"));

be changed to

//Load WPF app assembly 
await csharpKernel.SendAsync(new SubmitCode(@$"#r ""{typeof(App).Assembly.Location}""
using {System.Reflection.Assembly.GetExecutingAssembly().GetName().Name};"))

That will allow it to work with an a…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Awsmolak
Comment options

@jonsequitur
Comment options

@jonsequitur
Comment options

@Awsmolak
Comment options

Answer selected by Awsmolak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants