Skip to content

Commit f636a1e

Browse files
authored
Address PR feedback for NU5052 wording and validator helper
1 parent cddfada commit f636a1e

15 files changed

Lines changed: 32 additions & 32 deletions

src/NuGet.Core/NuGet.Commands/Strings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1191,6 +1191,6 @@ Upgrade your .NET SDK or remove RestoreUseLegacyDependencyResolver to use this f
11911191
<value>The project {0} contains a TargetFramework '{1}' with disallowed characters. TargetFramework names must contain only ASCII characters and must not contain path separators.</value>
11921192
</data>
11931193
<data name="RestrictedPackageIdWarning" xml:space="preserve">
1194-
<value>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</value>
1194+
<value>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</value>
11951195
</data>
11961196
</root>

src/NuGet.Core/NuGet.Commands/xlf/Strings.cs.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Upgradujte svou sadu .NET SDK nebo odeberte RestoreUseLegacyDependencyResolver,
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.de.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Aktualisieren Sie Ihr .NET SDK oder entfernen Sie RestoreUseLegacyDependencyReso
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.es.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Actualice el SDK de .NET o quite RestoreUseLegacyDependencyResolver para usar es
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.fr.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Mettez à niveau votre Kit de développement logiciel (SDK) .NET ou supprimez Re
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.it.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Per usare questa funzionalità, aggiornare .NET SDK o rimuovere RestoreUseLegacy
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.ja.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Upgrade your .NET SDK or remove RestoreUseLegacyDependencyResolver to use this f
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.ko.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Upgrade your .NET SDK or remove RestoreUseLegacyDependencyResolver to use this f
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.pl.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Uaktualnij zestaw .NET SDK lub usuń RestoreUseLegacyDependencyResolver, aby kor
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

src/NuGet.Core/NuGet.Commands/xlf/Strings.pt-BR.xlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,8 +1114,8 @@ Atualize o SDK do .NET ou remova RestoreUseLegacyDependencyResolver para usar es
11141114
<note>0 - package id and version, 1 - version</note>
11151115
</trans-unit>
11161116
<trans-unit id="RestrictedPackageIdWarning">
1117-
<source>The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</source>
1118-
<target state="new">The package ID '{0}' does not adhere to the restricted set of characters allowed in package IDs. Package IDs must start with a letter, digit, or underscore and contain only ASCII letters, digits, dots (.), and dashes (-) with no consecutive dots or dashes. Rename the package to use only characters from the restricted set.</target>
1117+
<source>The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</source>
1118+
<target state="new">The package ID '{0}' is invalid. Package IDs must start with a letter, digit, or underscore, and contain only ASCII letters, digits, dots (.), dashes (-), and underscores (_), with no consecutive dots or dashes.</target>
11191119
<note />
11201120
</trans-unit>
11211121
<trans-unit id="SignCommandCertificateFileNotFound">

0 commit comments

Comments
 (0)