-
Notifications
You must be signed in to change notification settings - Fork 40
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:
- Use approved version of a library
- 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."
}
}
}
}
},
...
}
- Talk to Eilon Lipton and add a new library/version to
third-party.json
in this repo.