Skip to content

Third party dependency version check

Pavel Krymets edited this page Apr 10, 2017 · 2 revisions

Getting WRONG_THIRDPARTY_DEPENDENCY_VERSION or THIRDPARTY_DEPENDENCY_NOT_REGISTERED NuGet Package Verifier error means that you are using library/version of a library that was not approved.

List of all approved library versions is in https://github.com/aspnet/BuildTools/blob/dev/src/NuGetPackageVerifier/third-party.json

There are 3 ways of fixing these errors:

  1. Use approved version of a library
  2. Talk to Eilon Lipton and add exception to NuGetPackageVerifier.json file in your repo.
{
    "adx": {
        "rules": [
            "DefaultCompositeRule"
        ],
        "packages": {
            "Microsoft.VisualStudio.LanguageServices.Razor": {
                "Exclusions": {
                    "WRONG_THIRDPARTY_DEPENDENCY_VERSION": {
                        "Microsoft.VisualStudio.LanguageServices.Razor; .NETFramework,Version=v4.6": "This package intentionally depends on version 8.0.3 of Newtonsoft.Json because of the dependency on Visual Studio."
                    }
                }
            }
        }
    },
    ...
}
  1. Talk to Eilon Lipton and add a new library/version to third-party.json in this repo.
Clone this wiki locally