-1

I am trying to build a project with below versions -

<PropertyGroup>
    <TargetFrameworks>net48;net5.0</TargetFrameworks>
</PropertyGroup>

In this project, there is a reference project which also targets the same version.

When I try to build the project I get the below error -

enter image description here

Please help me to resolve this.

Observation - When I try to build these projects separately for both 4.8 and 5.0 they compile without errors.

TIA

Pranav Bilurkar
  • 955
  • 1
  • 9
  • 26

2 Answers2

0

It seems like you are referencing a library with a different .net version. Try finding another (version of the) library that uses .netframework 4.8

Marijn Kneppers
  • 534
  • 2
  • 15
0

.net core version 2.2 is not compatible with .net framework 4.8.

You can low you project to .net core 2.1 that is stil compatible.

Ygalbel
  • 5,214
  • 1
  • 24
  • 32