How do I reference a Class Library (WinUI 3 Desktop) in Solution_AAA from Solution_BBB?

Kenny Brown 51 Reputation points
2021-10-03T11:55:01.967+00:00

How do I reference a Class Library (WinUI 3 Desktop) in Solution_AAA from Solution_BBB?

I generated a C# projection from a C++/WinRT component to distribute as a NuGet package for .NET 5+ applications and need to use it in a WinUI 3 Desktop App that is in it's own solution.

Solution_AAA contains:
DirectWriteCore is a C++ Windows Component (WinUI 3)
DirectWriteCore_API is a C# Class Library (WinUI 3 in Desktop)

Solution_BBB contains:

??? The project (C# WinUI 3 in Desktop) that needs access to DirectWriteCore_API (to access DirectWriteCore, which accesses DWriteCore in WindowsAppSDK) ???

Thank you, in advance, for any assistance.

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
749 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,604 questions
{count} votes