How-to-simply...

Fix teamcity error NU1202: Package not compatible with net50

  • 1 On Windows, check or add environment variable in System Properties: MSBuildSDKsPath c:\Program Files\dotnet\sdk\5.0.203\Sdks\
  • N SDK version should match installed SDK

References