marb2000 / XamlIslands

Repository with several XAML Islands v1 samples (Win32, WPF, and WinForms) to demonstrate how to use it.
MIT License
47 stars 18 forks source link

Feedback and errors #13

Open hansmbakker opened 5 years ago

hansmbakker commented 5 years ago

I'm trying to build a similar app to the Winforms on netcore3.0 example.

Unfortunately I can't get it to work following the steps in https://github.com/marb2000/XamlIslands/blob/master/1903_Samples/WnForms_and_WPF_Readme.md, even though this seems to be the most exhaustive explanation I can find.

Setup:

What am I trying:

What did I miss from the explanation:

    <Platforms>x64;x86</Platforms>
    <RuntimeIdentifiers>win-x64;win-x86</RuntimeIdentifiers>

If I do not add this, I get a warning:

Because your app is being built as AnyCPU no Microsoft.VCRTForwarders.140 DLLs were copied to your ouput folder. Microsoft.VCRTForwarders.140 only supports x86 or x64 applications due to a C++ Runtime dependency. Please change your app project architecture to x86 or x64 in the Configuration Manager.

After adding this, the app does not start anymore on x86:

The target process exited without raising a CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core.

On x64, the app raises an exception:

System.IO.FileNotFoundException: 'Could not load file or assembly 'Microsoft.Toolkit.Uwp.UI.Animations, Version=5.1.0.0, Culture=neutral, PublicKeyToken=null'.

Are the Microsoft.Toolkit.Uwp.UI.Animations supported in xaml islands? Should I include them in a special way?

hansmbakker commented 5 years ago

x64:

x86: