0

UPDATED

The following fixed my issue and I really dont know why

https://stackoverflow.com/a/74358346/72792

ORIGINAL

I have .net standard 2.0 project that fails to compile with this error

NETSDK1013  The TargetFramework value '' was not recognized. It may be misspelled. If not, then the TargetFrameworkIdentifier and/or TargetFrameworkVersion properties must be specified explicitly.

My csproj has the TargetFramework tag defined as follows

<PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

But the project has a blue warning icon enter image description here

and they also show these dependencies enter image description here

which do not make any kind of sense

I've tried closing VS restarting the PC, all these issues started happening after I added a SourceGenerator project to the solution.

Also when I click on the project properties I am presented with this error

enter image description here

Thanks in advance!

Paleta
  • 970
  • 2
  • 13
  • 27

0 Answers0