Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Commit 3fa0c2e

Browse files
authored
Fix NuGet publishing errors (#9)
Context: https://devdiv.visualstudio.com/DevDiv/_wiki/wikis/DevDiv.wiki/975/Publishing-a-NuGet-package?anchor=troubleshooting-package-publishing-errors While attempting to use the internal publishing pipeline part of bce1b7f, we encountered an error regarding the `.nuspec` file: The nuget command failed with exit code(1) and error: Response status code does not indicate success: 400 (The package is not compliant with metadata requirements for Microsoft packages on NuGet.org. Go to https://aka.ms/Microsoft-NuGet-Compliance for more information. Policy violations: The package metadata defines 'Miguel de Icaza' as one of the authors which is not allowed by policy. The package metadata contains a non-compliant copyright element.). Update the `$(Authors)` property and add a `$(Copyright)` property so that the resulting `.nupkg` file is compliant.
1 parent 06a4ddf commit 3fa0c2e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.ci/azure-pipelines.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
buildType: none
2626
areaPath: 'DevDiv\Xamarin SDK'
2727
linuxImage: '' # skip linux builds
28-
skipValidation: true
28+
validPackagePrefixes: [ 'Mono' ]
2929
steps:
3030
- task: MSBuild@1
3131
displayName: msbuild LineEditor.sln

LineEditor/LineEditor.csproj

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<PackageId>Mono.Terminal</PackageId>
66
<PackageVersion>5.4.1</PackageVersion>
7-
<Authors>Miguel de Icaza</Authors>
7+
<Authors>Microsoft</Authors>
8+
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
89
<PackageIconUrl>https://github.com/mono/LineEditor/raw/master/icon_128x128.png</PackageIconUrl>
910
<PackageLicenseUrl>https://github.com/mono/LineEditor/blob/master/LICENSE</PackageLicenseUrl>
1011
<Owners>Xamarin</Owners>
1112
<PackageProjectUrl>https://github.com/mono/LineEditor</PackageProjectUrl>
12-
<PackageReleaseNotes>Release 5.4.0 includes new documentation.</PackageReleaseNotes>
13+
<PackageReleaseNotes>Release 5.4.1 improves Windows support.</PackageReleaseNotes>
14+
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
1315
<Summary>An interactive commmand line editor</Summary>
1416
<Title>Mono.Terminal - LineEdit, GetLine</Title>
1517
<Description>Interactive Command Line Editor</Description>

0 commit comments

Comments
 (0)