Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomaszkot opened this issue Mar 13, 2024 · 0 comments
Open

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

tomaszkot opened this issue Mar 13, 2024 · 0 comments

Comments

@tomaszkot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant