Skip to content

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

@tomaszkot

Description

@tomaszkot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions