Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "Bug Fix",
"description": "Fix for installing aws.lambda.tools along side nuget.config with private nuget-feed."
}
20 changes: 18 additions & 2 deletions Tasks/Common/dotNetCliWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@ export class DotNetCliWrapper {

private async updateGlobalTools(): Promise<boolean> {
try {
const returnCode = await this.execute(['tool', 'update', '-g', 'Amazon.Lambda.Tools'], '')
const returnCode = await this.execute(
[
'tool',
'update',
"-g --ignore-failed-sourced --add-source https://api.nuget.org/v3/index.json --version '*'",
'Amazon.Lambda.Tools'
],
''
)
if (returnCode === 0) {
return true
} else {
Expand All @@ -65,7 +73,15 @@ export class DotNetCliWrapper {

private async installGlobalTools(): Promise<boolean> {
try {
const returnCode = await this.execute(['tool', 'install', '-g', 'Amazon.Lambda.Tools'], '')
const returnCode = await this.execute(
[
'tool',
'install',
"-g --ignore-failed-sourced --add-source https://api.nuget.org/v3/index.json --version '*'",
'Amazon.Lambda.Tools'
],
''
)
if (returnCode === 0) {
return true
} else {
Expand Down