azuredevops
azuredevops copied to clipboard
Add dotnet to task inputs
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.
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 I'm pretty sure the additionalArguments field is broken (#72). That would be the underlying reason this is not working.