Cake.Incubator icon indicating copy to clipboard operation
Cake.Incubator copied to clipboard

--no-restore in DotnetCoreTest

Open javicrespo opened this issue 8 years ago • 4 comments

sdk 2.0 includes a setting to skip restoring packages

https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-test?tabs=netcore2x

--no-restore Doesn't perform an implicit restore when running the command.

I tried with cake settings generic argument customization, no luck :( ArgumentCustomization = args=>args.Append("--no-restore")

Would it be ok to add that setting?

javicrespo avatar Aug 16 '17 16:08 javicrespo

Never mind, I used this one http://cakebuild.net/api/Cake.Common.Tools.DotNetCore/DotNetCoreAliases/8191BBC4 and it works with argumentcustomization

javicrespo avatar Aug 16 '17 17:08 javicrespo

Still would be a valid addition if documented available cli ver 2 and up.

devlead avatar Aug 16 '17 17:08 devlead

The --no-restore flag is useful to provide to dotnet build, test, pack, and publish if you have already restored in an earlier step - saves a small amount of time..

kitforbes avatar Aug 25 '17 13:08 kitforbes

I agree this would be useful.

I'll have a look at how the alias can support the generic argument customisation as this would seem the most flexible approach

wwwlicious avatar Aug 25 '17 14:08 wwwlicious