From 7286f831cf9216e083065e20f8b13eff938f2953 Mon Sep 17 00:00:00 2001 From: Jonathan Pryor Date: Mon, 19 Oct 2020 14:52:04 -0400 Subject: [PATCH] Fix NuGet publishing errors 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 bce1b7f3, 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. --- .ci/azure-pipelines.yml | 2 +- LineEditor/LineEditor.csproj | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.ci/azure-pipelines.yml b/.ci/azure-pipelines.yml index dd76e9c..a2dd3de 100644 --- a/.ci/azure-pipelines.yml +++ b/.ci/azure-pipelines.yml @@ -25,7 +25,7 @@ jobs: buildType: none areaPath: 'DevDiv\Xamarin SDK' linuxImage: '' # skip linux builds - skipValidation: true + validPackagePrefixes: [ 'Mono' ] steps: - task: MSBuild@1 displayName: msbuild LineEditor.sln diff --git a/LineEditor/LineEditor.csproj b/LineEditor/LineEditor.csproj index 9eb2bfb..67128a0 100644 --- a/LineEditor/LineEditor.csproj +++ b/LineEditor/LineEditor.csproj @@ -4,12 +4,14 @@ netstandard2.0 Mono.Terminal 5.4.1 - Miguel de Icaza + Microsoft + © Microsoft Corporation. All rights reserved. https://github.com/mono/LineEditor/raw/master/icon_128x128.png https://github.com/mono/LineEditor/blob/master/LICENSE Xamarin https://github.com/mono/LineEditor - Release 5.4.0 includes new documentation. + Release 5.4.1 improves Windows support. + True An interactive commmand line editor Mono.Terminal - LineEdit, GetLine Interactive Command Line Editor