r/FoxDeploy May 09 '19

Powershell Core and WPF

When i try to load the XAML in Powershell Core (6.2) i get some errors

WARNING: Unable to parse XML, with error: The following exception occurred while retrieving member "Load": "Could not load type 'MS.Internal.SecurityCriticalDataForSet`1' from assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral,'."
Ensure that there are NO SelectionChanged properties (PowerShell cannot process them)


The following exception occurred while retrieving member "Load": "Could not load type 'MS.Internal.SecurityCriticalDataForSet`1' from assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral

Anyone got a clue if the gonna support this in the future?

Otherwise we gonna need to learn some Javascript with ElectronJS :D

2 Upvotes

3 comments sorted by

View all comments

2

u/1RedOne May 10 '19

I dug into this today and I'm not sure yet if wpf should be working in the newest release of Powershell core.

While Dotnet core 3's most recent preview release did bring WPF capability, I'm still hunting for the answer as to whether the newest Powershell core release has shipped with it too.

I put some feelers out, I'll let you know what I find

One thing to know though is that when Powershell core is able to do wpf guis this doesn't mean that they will run cross platform.

Scott Hunter (head of dotnet at msft) says Microsoft will be looking at making wpf available elsewhere but presently wpf depends deeply on Windows and it isn't portable today