File tree Expand file tree Collapse file tree 8 files changed +24
-24
lines changed Expand file tree Collapse file tree 8 files changed +24
-24
lines changed Original file line number Diff line number Diff line change @@ -139,11 +139,11 @@ export function stripLeadingAndTrailingQuotes(path: string): string {
139139 return path . substring ( left , right + 1 ) ;
140140}
141141
142- export function getBundledNuGetLocation ( version : string ) : string {
143- if ( version === "3.5.0.1829" ) {
144- return path . join ( __dirname , 'NuGet/3.5.0.1829 /NuGet.exe' )
142+ export function getBundledNuGetLocation ( uxOption : string ) : string {
143+ if ( uxOption === "3.5.0.1829" ) {
144+ return path . join ( __dirname , 'NuGet/3.5.0/NuGet.exe' )
145145 }
146- else if ( version === "3.3.0" ) {
146+ else if ( uxOption === "3.3.0" ) {
147147 return path . join ( __dirname , 'NuGet/3.3.0/NuGet.exe' ) ;
148148 }
149149 throw new Error ( tl . loc ( "NGCommon_UnabletoDetectNuGetVersion" ) ) ;
Original file line number Diff line number Diff line change 77 },
88 {
99 "archiveName" : " NuGet.exe" ,
10- "url" : " https://vstsagenttools.blob.core.windows.net/tools/NuGet/3.5.0-1829 /NuGet.zip" ,
11- "dest" : " ./NuGet/3.5.0.1829 /"
10+ "url" : " https://vstsagenttools.blob.core.windows.net/tools/NuGet/3.5.0.1938-rtm /NuGet.zip" ,
11+ "dest" : " ./NuGet/3.5.0/"
1212 },
1313 {
1414 "archiveName" : " CredentialProvider.TeamBuild.exe" ,
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ async function main(): Promise<void> {
6767 nugetConfigPath = null ;
6868 }
6969
70- let nugetVersion = tl . getInput ( 'nuGetVersion' ) ;
70+ let nugetUxOption = tl . getInput ( 'nuGetVersion' ) ;
7171
7272 // due to a bug where we accidentally allowed nuGetPath to be surrounded by quotes before,
7373 // locateNuGetExe() will strip them and check for existence there.
@@ -77,19 +77,19 @@ async function main(): Promise<void> {
7777 nuGetPath = nutil . stripLeadingAndTrailingQuotes ( nuGetPath ) ;
7878 // True if the user provided their own version of NuGet
7979 userNuGetProvided = true ;
80- if ( nugetVersion !== "custom" ) {
80+ if ( nugetUxOption !== "custom" ) {
8181 // For back compat, if a path has already been specificed then use it.
8282 // However warn the user in the build of this behavior
8383 tl . warning ( tl . loc ( "Warning_ConflictingNuGetPreference" ) ) ;
8484 }
8585 }
8686 else {
87- if ( nugetVersion === "custom" )
87+ if ( nugetUxOption === "custom" )
8888 {
8989 throw new Error ( tl . loc ( "NoNuGetSpecified" ) )
9090 }
9191 // Pull the pre-installed path for NuGet.
92- nuGetPath = nutil . getBundledNuGetLocation ( nugetVersion ) ;
92+ nuGetPath = nutil . getBundledNuGetLocation ( nugetUxOption ) ;
9393 }
9494
9595 let serviceUri = tl . getEndpointUrl ( "SYSTEMVSSCONNECTION" , false ) ;
Original file line number Diff line number Diff line change 99 "version" : {
1010 "Major" : 0 ,
1111 "Minor" : 2 ,
12- "Patch" : 18
12+ "Patch" : 20
1313 },
1414 "minimumAgentVersion" : " 1.83.0" ,
1515 "groups" : [
9090 "groupName" : " advanced" ,
9191 "options" : {
9292 "3.3.0" : " 3.3.0" ,
93- "3.5.0.1829" : " 3.5.0 – build 1829 (rc2) " ,
94- "custom" : " Custom"
93+ "3.5.0.1829" : " 3.5.0" ,
94+ "custom" : " Custom"
9595 }
9696 },
9797 {
Original file line number Diff line number Diff line change 99 "version" : {
1010 "Major" : 0 ,
1111 "Minor" : 2 ,
12- "Patch" : 18
12+ "Patch" : 20
1313 },
1414 "minimumAgentVersion" : " 1.83.0" ,
1515 "groups" : [
9090 "groupName" : " advanced" ,
9191 "options" : {
9292 "3.3.0" : " 3.3.0" ,
93- "3.5.0.1829" : " 3.5.0 – build 1829 (rc2) " ,
93+ "3.5.0.1829" : " 3.5.0" ,
9494 "custom" : " Custom"
9595 }
9696 },
Original file line number Diff line number Diff line change @@ -66,24 +66,24 @@ async function main(): Promise<void> {
6666 // due to a bug where we accidentally allowed nuGetPath to be surrounded by quotes before,
6767 // locateNuGetExe() will strip them and check for existence there.
6868 let nuGetPath = tl . getPathInput ( "nuGetPath" , false , false ) ;
69- let nugetVersion = tl . getInput ( "nuGetversion" ) ;
69+ let nugetUxOption = tl . getInput ( "nuGetversion" ) ;
7070 let userNuGetProvided = false ;
7171 if ( nuGetPath !== null && tl . filePathSupplied ( "nuGetPath" ) ) {
7272 nuGetPath = nutil . stripLeadingAndTrailingQuotes ( nuGetPath ) ;
7373 userNuGetProvided = true ;
74- if ( nugetVersion !== "custom" )
74+ if ( nugetUxOption !== "custom" )
7575 {
7676 // For back compat, if a path has already been specified then use it.
7777 // However, warn the user in the build of this behavior.
7878 tl . warning ( tl . loc ( "Warning_ConflictingNuGetPreference" ) ) ;
7979 }
8080 }
8181 else {
82- if ( nugetVersion === "custom" )
82+ if ( nugetUxOption === "custom" )
8383 {
8484 throw new Error ( tl . loc ( "NoNuGetSpecified" ) )
8585 }
86- nuGetPath = nutil . getBundledNuGetLocation ( nugetVersion ) ;
86+ nuGetPath = nutil . getBundledNuGetLocation ( nugetUxOption ) ;
8787 }
8888
8989 let serviceUri = tl . getEndpointUrl ( "SYSTEMVSSCONNECTION" , false ) ;
Original file line number Diff line number Diff line change 99 "version" : {
1010 "Major" : 0 ,
1111 "Minor" : 2 ,
12- "Patch" : 18
12+ "Patch" : 20
1313 },
1414 "demands" : [
1515 " Cmd"
9494 "groupName" : " advanced" ,
9595 "options" : {
9696 "3.3.0" : " 3.3.0" ,
97- "3.5.0.1829" : " 3.5.0 – build 1829 (rc2) " ,
98- "custom" : " Custom"
97+ "3.5.0.1829" : " 3.5.0" ,
98+ "custom" : " Custom"
9999 }
100100 },
101101 {
Original file line number Diff line number Diff line change 99 "version" : {
1010 "Major" : 0 ,
1111 "Minor" : 2 ,
12- "Patch" : 18
12+ "Patch" : 20
1313 },
1414 "demands" : [
1515 " Cmd"
9494 "groupName" : " advanced" ,
9595 "options" : {
9696 "3.3.0" : " 3.3.0" ,
97- "3.5.0.1829" : " 3.5.0 – build 1829 (rc2) " ,
97+ "3.5.0.1829" : " 3.5.0" ,
9898 "custom" : " Custom"
9999 }
100100 },
You can’t perform that action at this time.
0 commit comments