You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Winforms project written in .net core that sits in Systray
UWP class library containing user controls, theme resources and assets
user control class library references the Microsoft.Toolkit.Uwp.UI.Animations nuget package
What did I miss from the explanation:
Platforms + RuntimeIdentifiers need to be set to x86/x64 (VS also gives a warning about the VCForwarders if you do not do that). VS template for Winforms on netcore3.0 does not set them by default and then VS thinks you want to use AnyCpu.
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?
The text was updated successfully, but these errors were encountered:
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:
Microsoft.Toolkit.Uwp.UI.Animations
nuget packageWhat did I miss from the explanation:
If I do not add this, I get a warning:
After adding this, the app does not start anymore on x86:
On x64, the app raises an exception:
Are the
Microsoft.Toolkit.Uwp.UI.Animations
supported in xaml islands? Should I include them in a special way?The text was updated successfully, but these errors were encountered: