diff --git a/Build/Program.cs b/Build/Program.cs index 935eb0208..416023dce 100644 --- a/Build/Program.cs +++ b/Build/Program.cs @@ -122,10 +122,11 @@ void RemoveDirectory(string d) Target( TEST_ONLY, - DependsOn(RESTORE), + DependsOn(FORMAT), Glob.Files(".", "**/*.Tests.csproj"), file => { + Run("dotnet", $"restore {file} --locked-mode"); Run("dotnet", $"test {file} -c Release --no-restore --verbosity=normal /p:AltCover=true"); } );