dependency-check / azuredevops

Dependency Check Azure DevOps Extension
Apache License 2.0
45 stars 25 forks source link

Add dotnet to task inputs #92

Open davidandradeduarte opened 2 years ago

davidandradeduarte commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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