microsoft / WindowsAppSDK-Samples

Feature samples for the Windows App SDK
MIT License
721 stars 225 forks source link

How to add .net library to the Win32 application #328

Open tomaszkot opened 6 months ago

tomaszkot commented 6 months ago

I grabbed the project cpp-win32-unpackaged and added it to the Samples\CustomControls\CsWinRTAuthoringWinUI.sln

When running app I get: Exception thrown at 0x00007FFB44FB5B0C (KernelBase.dll) in SimpleIslandApp.exe: WinRT originate error - 0x80004005 : 'Cannot find a resource with the given key: AcrylicBackgroundFillColorDefaultBrush.'.

Here is the project https://github.com/tomaszkot/CsWinRTAuthoringWinUI