Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .NET Core Lambda deployment task to work with global tools #113

Closed
stevejroberts opened this issue Oct 11, 2018 · 2 comments
Closed
Labels
feature-request New feature or enhancement. May require GitHub community feedback.

Comments

@stevejroberts
Copy link
Contributor

The .NET Core Lambda Deployment task does not currently work with the new global dotnet CLI tools unless the user has pre-installed them on the build host and they are on path.

We need to update the task to auto-install the global tools and invoke from their install location (in case the current process has not picked up the change to PATH).

@stevejroberts stevejroberts added the feature-request New feature or enhancement. May require GitHub community feedback. label Oct 18, 2018
@melih154
Copy link

melih154 commented Nov 7, 2018

For anyone having the same problem, here is the hack we come up with.

steps:
- script: 'dotnet tool install -g Amazon.Lambda.Tools'
  displayName: 'Install Amazon.Lambda.Tools'
- powershell: |
   Copy-Item "$env:USERPROFILE\.dotnet\tools\dotnet-lambda.exe" -Destination "C:\Program Files\dotnet"
   Copy-Item "$env:USERPROFILE\.dotnet\tools\.store" -Destination "C:\Program Files\dotnet" -Recurse
  displayName: 'Copy Amazon.Lambda.Tools'

Ps. Only works with Windows agent. Re Linux agent, will try to use (Get-Command dotnet).Path to get the path,

@hunterwerlla
Copy link
Contributor

This is added as part of the 1.5 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or enhancement. May require GitHub community feedback.
Projects
None yet
Development

No branches or pull requests

3 participants