Reputation: 3158
How can I add a reference to PresentationCore
to an existing .NET 5 class library?
Upvotes: 4
Views: 6319
Reputation: 128042
Set TargetFramework
and UseWPF
:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
</PropertyGroup>
</Project>
Upvotes: 11