How can I add a reference to PresentationCore to an existing .NET 5 class library?
PresentationCore
Set TargetFramework and UseWPF:
TargetFramework
UseWPF
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>net5.0-windows</TargetFramework> <UseWPF>true</UseWPF> </PropertyGroup> </Project>
2.1m questions
2.1m answers
60 comments
57.0k users