You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Tasks/NuGetCommand/Common/NuGetToolRunner.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ export async function getNuGetQuirksAsync(nuGetExePath: string): Promise<NuGetQu
143
143
// when using the credential provider.
144
144
// Unfortunately, on on-premises TFS, we must use credential provider to override NTLM auth with the build
145
145
// identity's token.
146
-
// Therefore, we are enabling credential provider on on-premises and disabling it on hosted. We allow for test
146
+
// Therefore, we are enabling credential provider on on-premises and disabling it on hosted (only when the version of NuGet does not support it). We allow for test
"loc.input.label.solution": "Path to solution, packages.config, or project.json",
15
14
"loc.input.help.solution": "The path to the solution, packages.config, or project.json file that references the packages to be restored.",
16
15
"loc.input.label.selectOrConfig": "Feeds to use",
17
-
"loc.input.help.selectOrConfig": "You can either select feeds from VSTS and/or NuGet.org here, or commit a nuget.config file to your source code repository and set its path here.",
16
+
"loc.input.help.selectOrConfig": "You can either select a feed from VSTS and/or NuGet.org here, or commit a nuget.config file to your source code repository and set its path here.",
18
17
"loc.input.label.feedRestore": "Use packages from this VSTS/TFS feed",
19
-
"loc.input.help.feedRestore": "Include the selected feeds in the generated NuGet.config. You must have Package Management installed and licensed to select a feed here.",
18
+
"loc.input.help.feedRestore": "Include the selected feed in the generated NuGet.config. You must have Package Management installed and licensed to select a feed here.",
20
19
"loc.input.label.includeNuGetOrg": "Use packages from NuGet.org",
21
20
"loc.input.help.includeNuGetOrg": "Include NuGet.org in the generated NuGet.config.",
22
21
"loc.input.label.nugetConfigPath": "Path to NuGet.config",
@@ -47,7 +46,7 @@
47
46
"loc.input.label.outputDir": "Package Folder",
48
47
"loc.input.help.outputDir": "Folder where packages will be created. If empty, packages will be created alongside the csproj or nuspec file.",
"loc.input.help.versioningScheme": "Cannot be used with include referenced projects. If you choose 'Use the date and time', this will generate a [SemVer](http://semver.org/spec/v1.0.0.html)-compliant version formatted as `X.Y.Z-ci-datetime` where you choose X, Y, and Z.\n\nIf you choose 'Use an environment variable', you must select an environment variable and ensure it contains the version number you want to use.\n\nIf you choose 'Use the build number', this will use the build number to version you package. **Note:** Under General set the build format to be '[$(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)](https://go.microsoft.com/fwlink/?LinkID=627416)'.",
49
+
"loc.input.help.versioningScheme": "Cannot be used with include referenced projects. If you choose 'Use the date and time', this will generate a [SemVer](http://semver.org/spec/v1.0.0.html)-compliant version formatted as `X.Y.Z-ci-datetime` where you choose X, Y, and Z.\n\nIf you choose 'Use an environment variable', you must select an environment variable and ensure it contains the version number you want to use.\n\nIf you choose 'Use the build number', this will use the build number to version your package. **Note:** Under Options set the build number format to be '[$(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)](https://go.microsoft.com/fwlink/?LinkID=627416)'.",
"loc.input.help.includeReferencedProjects": "Include referenced projects either as dependencies or as part of the package. Cannot be used with automatic package versioning. If a referenced project has a corresponding nuspec file that has the same name as the project, then that referenced project is added as a dependency. Otherwise, the referenced project is added as part of the package. [Learn more](https://docs.nuget.org/consume/command-line-reference#pack-command) at NuGet.org.",
"loc.input.help.buildProperties": "Semicolon delimited list of properties used to build the package.",
61
+
"loc.input.help.buildProperties": "Specifies a list of token=value pairs, separated by semicolons, where each occurrence of $token$ in the .nuspec file will be replaced with the given value. Values can be strings in quotation marks.",
63
62
"loc.input.label.verbosityPack": "Verbosity",
64
63
"loc.input.help.verbosityPack": "Specifies the amount of detail displayed in the output.",
65
64
"loc.input.label.arguments": "Command and arguments",
@@ -114,5 +113,7 @@
114
113
"loc.messages.Warning_ForceNuGetCannotSkipConflicts": "NuGet.exe was forced to be used for publish, if push conflicts occur it will result in a failure.",
115
114
"loc.messages.Info_MatchingUrlWasFoundSettingAuth": "Using authentication information for the following URI: ",
116
115
"loc.messages.Error_PushNotARegularFile": "%s is not a file. Check the 'Path/Pattern to nupkg' property of the task.",
117
-
"loc.messages.Warning_AllowDuplicatesOnlyAvailableHosted": "The 'Allow duplicates to be skipped' option is currently only available on Visual Studio Team Services. If NuGet.exe encounters a conflict, the task will fail."
116
+
"loc.messages.Warning_AllowDuplicatesOnlyAvailableHosted": "The 'Allow duplicates to be skipped' option is currently only available on Visual Studio Team Services. If NuGet.exe encounters a conflict, the task will fail.",
117
+
"loc.messages.Info_SavingTempConfig": "Saving NuGet.config to a temporary config file.",
118
+
"loc.messages.Error_CommandNotRecognized": "The command %s was not recognized."
Copy file name to clipboardExpand all lines: Tasks/NuGetCommand/Tests/L0.ts
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ import * as path from 'path';
2
2
import*asassertfrom'assert';
3
3
import*asttmfrom'vsts-task-lib/mock-test';
4
4
5
-
describe('NuGetRestore Suite',function(){
5
+
describe('NuGetCommand Suite',function(){
6
6
before(()=>{
7
7
});
8
8
@@ -240,7 +240,7 @@ describe('NuGetRestore Suite', function () {
240
240
241
241
tr.run()
242
242
assert(tr.invokedToolCount==1,'should have run NuGet once');
243
-
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version x.y.z-CI-YYYYMMDD-HHMMSS'),'it should have run NuGet');
243
+
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version x.y.z-CI-YYYYMMDD-HHMMSS'),'it should have run NuGet');
244
244
assert(tr.stdOutContained('setting console code page'),'it should have run chcp');
245
245
assert(tr.stdOutContained('NuGet output here'),"should have nuget output");
246
246
assert(tr.succeeded,'should have succeeded');
@@ -256,7 +256,7 @@ describe('NuGetRestore Suite', function () {
256
256
257
257
tr.run()
258
258
assert(tr.invokedToolCount==1,'should have run NuGet once');
259
-
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version XX.YY.ZZ'),'it should have run NuGet');
259
+
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version XX.YY.ZZ'),'it should have run NuGet');
260
260
assert(tr.stdOutContained('setting console code page'),'it should have run chcp');
261
261
assert(tr.stdOutContained('NuGet output here'),"should have nuget output");
262
262
assert(tr.succeeded,'should have succeeded');
@@ -272,7 +272,7 @@ describe('NuGetRestore Suite', function () {
272
272
273
273
tr.run()
274
274
assert(tr.invokedToolCount==1,'should have run NuGet once');
275
-
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory C:\\out\\dir -version 1.2.3'),'it should have run NuGet');
275
+
assert(tr.ran('c:\\from\\tool\\installer\\nuget.exe pack c:\\agent\\home\\directory\\foo.nuspec -NonInteractive -OutputDirectory c:\\agent\\home\\directory -Properties -version 1.2.3'),'it should have run NuGet');
276
276
assert(tr.stdOutContained('setting console code page'),'it should have run chcp');
277
277
assert(tr.stdOutContained('NuGet output here'),"should have nuget output");
0 commit comments