The warning appears when using any type of BCL in .NET Core projects. What does this warning mean and how to fix it?

"Assuming that the build link is System.Runtime, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" used by System.Collections is the same as System.Runtime, Version = 4.1.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a "for" System.Runtime ", you may need to set a runtime policy"

enter image description here

  • “We don't care about warnings. We only care about errors. ”- this is a joke)) - ikram
  • Try to upgrade Core - eastwing
  • @eastwing, seemingly helped) - Qutrix
  • @Qutrix The answer to make out, or still have doubts? - eastwing
  • @eastwing, you can arrange) - Qutrix

1 answer 1

The .NET Core SDK is currently installed and updated separately from Visual Studio. When you update VS, modules, libraries, signatures, etc. are updated with it. - and Core "does not know about it", as no one has updated it.

To eliminate the warnings, you need to download and install the latest version of Core.

In this case, please note that the old version will not be removed - and it should not be deleted manually, since the projects created for the previous version of Core will continue to work on this version. The project can be updated, but if you work in a team, this may lead to the need to urgently update the Core for all team members.