Skip to content

Commit 5091aa4

Browse files
ServerComon 2.36 to NuGetGalleryCore (#6643)
Take new version of ServerCommon to GalleryCore.
1 parent 6cb7f30 commit 5091aa4

4 files changed

Lines changed: 14 additions & 6 deletions

File tree

src/NuGetGallery.Core/NuGetGallery.Core.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@
242242
<Version>5.0.0-preview1.5665</Version>
243243
</PackageReference>
244244
<PackageReference Include="NuGet.Services.Validation">
245-
<Version>2.31.0</Version>
245+
<Version>2.36.0</Version>
246246
</PackageReference>
247247
<PackageReference Include="NuGet.Services.Validation.Issues">
248-
<Version>2.31.0</Version>
248+
<Version>2.36.0</Version>
249249
</PackageReference>
250250
<PackageReference Include="WindowsAzure.Storage">
251251
<Version>7.1.2</Version>

src/NuGetGallery/Views/Packages/_ValidationIssue.cshtml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,16 @@
6363
The checksum does not match for the dll(s) and corresponding pdb(s).
6464
</text>
6565
break;
66-
case ValidationIssueCode.SymbolErrorCode_MatchingPortablePDBNotFound:
66+
case ValidationIssueCode.SymbolErrorCode_MatchingAssemblyNotFound:
6767
<text>
6868
The uploaded symbols package contains pdb(s) for a corresponding dll(s) not found in the nuget package.
6969
</text>
7070
break;
71+
case ValidationIssueCode.SymbolErrorCode_PdbIsNotPortable:
72+
<text>
73+
The uploaded symbols package contains one or more pdbs that are not portable.
74+
</text>
75+
break;
7176
default:
7277
<text>
7378
There was an unknown failure when validating your package.

tests/NuGetGallery.Facts/Services/MessageServiceFacts.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2453,7 +2453,7 @@ public static IEnumerable<object[]> WillSendEmailToAllOwners_Data
24532453
{
24542454
foreach (var validationIssue in new[] {
24552455
ValidationIssue.SymbolErrorCode_ChecksumDoesNotMatch,
2456-
ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound,
2456+
ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound,
24572457
ValidationIssue.Unknown
24582458
})
24592459
{
@@ -2579,8 +2579,10 @@ private static string ParseValidationIssue(ValidationIssue validationIssue, stri
25792579
return $"The package was signed, but the signing certificate (SHA-1 thumbprint {certIssue.Sha1Thumbprint}) is not associated with your account. You must register this certificate to publish signed packages. [Read more...](https://aka.ms/nuget-signed-ref)";
25802580
case ValidationIssueCode.SymbolErrorCode_ChecksumDoesNotMatch:
25812581
return "The checksum does not match for the dll(s) and corresponding pdb(s).";
2582-
case ValidationIssueCode.SymbolErrorCode_MatchingPortablePDBNotFound:
2582+
case ValidationIssueCode.SymbolErrorCode_MatchingAssemblyNotFound:
25832583
return "The uploaded symbols package contains pdb(s) for a corresponding dll(s) not found in the nuget package.";
2584+
case ValidationIssueCode.SymbolErrorCode_PdbIsNotPortable:
2585+
return "The uploaded symbols package contains one or more pdbs that are not portable.";
25842586
default:
25852587
return "There was an unknown failure when validating your package.";
25862588
}

tests/NuGetGallery.Facts/Views/Packages/ValidationIssueFacts.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public static IEnumerable<ValidationIssue> KnownValidationIssues
100100
yield return ValidationIssue.AuthorCounterSignaturesNotSupported;
101101
yield return ValidationIssue.PackageIsNotSigned;
102102
yield return ValidationIssue.SymbolErrorCode_ChecksumDoesNotMatch;
103-
yield return ValidationIssue.SymbolErrorCode_MatchingPortablePDBNotFound;
103+
yield return ValidationIssue.SymbolErrorCode_MatchingAssemblyNotFound;
104+
yield return ValidationIssue.SymbolErrorCode_PdbIsNotPortable;
104105
yield return new UnauthorizedCertificateFailure("thumbprint");
105106
}
106107
}

0 commit comments

Comments
 (0)