WindowsAppSDK-Samples icon indicating copy to clipboard operation
WindowsAppSDK-Samples copied to clipboard

How to add .net library to the Win32 application

Open tomaszkot opened this issue 1 year ago • 0 comments

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

  • added WinUIComponentCs as a dependency to the cpp-win32-unpackaged
  • added a few includes to make it compiling
  • added some stuff to the manifest file

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

tomaszkot avatar Mar 13 '24 10:03 tomaszkot