Open icnocop opened 1 year ago
@icnocop the default is dotnet build --no-restore
when you do:
new DotNetBuildTask
{
Name = "Build",
},
You can however override this behaviour by doing:
new DotNetBuildTask
{
Name = "Build",
Run = "dotnet build"
},
Hope this helps
Hi.
Thank you for ADotNet.
DotNetBuildTask always specifies
--no-restore
.This requires the pipeline to explicitly call
RestoreTask
if the project/solution being built references any nuget packages.I expected
DotNetBuildTask
to make restoring nuget packages optional.Thank you.