azuredevops icon indicating copy to clipboard operation
azuredevops copied to clipboard

Add dotnet to task inputs

Open davidandradeduarte opened this issue 3 years ago • 2 comments

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 avatar Nov 26 '21 01:11 davidandradeduarte

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.

davidandradeduarte avatar Nov 26 '21 11:11 davidandradeduarte

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

ejohn20 avatar Dec 12 '21 16:12 ejohn20