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 development | Windows App SDK
Developer technologies | C#
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.