I have some class library projects in targets netstandard2.1
.
When I referenced that to my WPF project in target .NET Framework v4.8
, On building time I get an error:
Severity Code Description Project File Line Suppression State Error Project '..\ClassLibrary1\ClassLibrary1.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.8'. WpfApp1
What can I do?
Update: I read this Q/A about referencing netcoreapp2.1
and in that answer telling about add netstandar2.1
. But my libraries are already in targets netstandard2.1
!
Project 'ClassLibrary1.csproj' targets 'netstandard2.1'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.8'
[VS2022 p7] Project 'xxxx.csproj' targets 'net6.0'. It cannot be referenced by a project that targets 'Xamarin.iOS,Version=v1.0' #13201
It cannot be referenced by a project that targets '.NETFramework,Version=v4.7.2'. Person_WebApp I already changed the UI Web App Framework to v 4.6.1, v4.5, I still get the same error. Please help! .. You cannot add a reference to a .NET Core project to a .NET Framework project.
It cannot be referenced by a project that targets '.NETCoreApp,Version=v5.0' · Issue #12559 · dotnet/sdk · GitHub Have a question about this project?
What can I do?
or
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With