Skip to content

Commit 3ea0b84

Browse files
Merge pull request #4600 from emanuelquintero/users/jahquin/cp
Fixing NuGet push if using NuGet < 3.3
2 parents b3e2bea + dd5211d commit 3ea0b84

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

Tasks/NuGetCommand/nugetpublisher.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ export async function run(nuGetPath: string): Promise<void> {
117117
if (isInternalFeed)
118118
{
119119
let internalFeedId = tl.getInput("feedPublish");
120+
const nuGetVersion: VersionInfo = await peParser.getFileVersionInfoAsync(nuGetPath);
121+
feedUri = await nutil.getNuGetFeedRegistryUrl(accessToken, internalFeedId, nuGetVersion);
120122
if (useCredConfig) {
121123

122124
nuGetConfigHelper.addSourcesToTempNuGetConfig([<IPackageSource>{ feedName: internalFeedId, feedUri: feedUri, isInternal: true }]);
@@ -125,8 +127,6 @@ export async function run(nuGetPath: string): Promise<void> {
125127
}
126128

127129
apiKey = "VSTS";
128-
const nuGetVersion: VersionInfo = await peParser.getFileVersionInfoAsync(nuGetPath);
129-
feedUri = await nutil.getNuGetFeedRegistryUrl(accessToken, internalFeedId, nuGetVersion);
130130
}
131131
else {
132132
let externalAuth = externalAuthArr[0];

Tasks/NuGetCommand/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nugetcommand",
3-
"version": "2.0.2",
3+
"version": "2.0.3",
44
"description": "Restore, pack, or push NuGet packages, or run a NuGet command.",
55
"main": "nugetcommandmain.js",
66
"scripts": {

Tasks/NuGetCommand/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 2,
1111
"Minor": 0,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"runsOn": [
1515
"Agent",

Tasks/NuGetCommand/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"version": {
1010
"Major": 2,
1111
"Minor": 0,
12-
"Patch": 2
12+
"Patch": 3
1313
},
1414
"runsOn": [
1515
"Agent",

0 commit comments

Comments
 (0)