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

Add dotnet to task inputs #92

Open
davidandradeduarte opened this issue Nov 26, 2021 · 2 comments
Open

Add dotnet to task inputs #92

davidandradeduarte opened this issue Nov 26, 2021 · 2 comments

Comments

@davidandradeduarte
Copy link

Trying to migrate CI pipelines to .NET 6 and having issues with dependency check.

Could not execute .NET AssemblyAnalyzer

It seems that it cannot detect the currently installed version of dotnet sdk.

However, if I use the available --dotnet CLI argument and specify location of the current dotnet version, it will work fine.

Having this argument available in the task inputs would be a workaround, until the .NET6 SDK discovery issue is resolved.

@davidandradeduarte
Copy link
Author

For context, I've tried to use the additionalArguments input and provide --dotnet $(Agent.ToolsDirectory)/dotnet/dotnet and I'm still facing the issue.

So I guess this could mean something else, rather than just adding the input to the task.

I can reproduce the issue with .NET 6 locally, but it works fine when I provide the --dotnet argument, which I was expecting to work with the task inputs too.

@ejohn20
Copy link
Collaborator

ejohn20 commented Dec 12, 2021

@davidandradeduarte I'm pretty sure the additionalArguments field is broken (#72). That would be the underlying reason this is not working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants