Home > Blockchain >  Version mismatch in Nuget Package
Version mismatch in Nuget Package

Time:04-10

I was trying to create a gis application when i installed a nuget package, it showed the following error,

Error The 'Esri.ArcGISRuntime.WPF' nuget package cannot be used to target 'net6.0-windows'. Target 'net6.0-windows10.0.18362.0' or later instead.

I have tried downgrading the version of the nuget package but it didn't work, it keeps giving out the same error, where can i download net 6.0 windows 10.0.18362.0

CodePudding user response:

Try this:

  1. Go to Project/YourProject Properties/
  2. Make sure target framework is .NET 6
  3. Change Target OS version to 10.0.18362.0
  4. If you get an error like this: "The runtime pack for microsoft.windows.sdk.Net was not downloaded. Try running a nuget restore" just restart visual studio

Keep in mind that your project will only work for windows version 10.0.18362.0 and later using this method

  • Related