0

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

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

Just to be more accurate, please note that specifying an OS version in the target framework only affects the API surface available at compile time, so it may still work in earlier OS versions. For more info, please refer to: OS version in TFM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.