-5

I'm trying to create a NuGet package from my project, which is targeting .net standard 2.0. When I add this package as a reference from NuGet package manager I get the following errors

Package packageName is not compatible with netstandard2.0 (.NETStandard,Version=v2.0). Package packageName supports: netstandart20 (netstandart2.0,Version=v0.0)    
Package packageName is not compatible with net461 (.NETFramework,Version=v4.6.1). Package packageName supports: netstandart20 (netstandart2.0,Version=v0.0)

Also I am able to add this project as a reference to the project, where NuGet fails. How can I fix this?

Waldemar
  • 5,363
  • 3
  • 17
  • 28

1 Answers1

-2

Does your TargetFramework look like this?

<TargetFramework>netstandart20</TargetFramework>

If so, the solution is probably just to fix the typo and make it look like this (standard, not standart):

<TargetFramework>netstandard2.0</TargetFramework>
Tobias Xy
  • 2,039
  • 18
  • 19
  • 5
    If this is indeed the issue, voting to close as "due to a typo" is more appropriate than providing an answer that fixes the typo, as such questions are unlikely to help future readers. – Jeroen Mostert Nov 16 '20 at 11:15