private void ValidateCurrentPackage(NuGetPackage package) { Argument.IsNotNull(() => package); //validate loaded dependencies package.ResetValidationContext(); _apiPackageRegistry.Validate(package); GetPackageValidationErrors(package); // Note: this is a workaround to pass validation context from specific version package to main model if (!ReferenceEquals(Package, package)) { ValidationContext = package.ValidationContext; } }