You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet cli 2.0 automatically restores before building when executing dotnet build or dotnet test. I can understand why, but still I have been adding --no-restore to all our build scripts and VSCode tasks.
Going through the code Omnisharp-Roslyn code, I noticed that the CLI is also called with build:
Calling with --no-restore is possible here, but not sure what you think is best from a functionality standpoint? In my opinion, during development, these tasks should be as fast as possible.
The text was updated successfully, but these errors were encountered:
Thanks @tverboon. You're right, that's probably the right thing to do here. However, the "restore" on build is supposed to be very quick (milliseconds).
Yes, in our case it's typically between 30 and 50 milliseconds per project. We have around 10 projects in the dependency graph, in that case it takes between 300 and 500 ms.
It's not possible to just add --no-restore in this line, because there needs to be a check for the dotnet version. Not sure if it's cached somewhere, otherwise starting the dotnet process to get the version, makes it potentially even slower for projects with less project dependencies.
dotnet cli 2.0 automatically restores before building when executing
dotnet build
ordotnet test
. I can understand why, but still I have been adding--no-restore
to all our build scripts and VSCode tasks.Going through the code Omnisharp-Roslyn code, I noticed that the CLI is also called with
build
:omnisharp-roslyn/src/OmniSharp.DotNetTest/VSTestManager.cs
Line 51 in e18913e
Calling with --no-restore is possible here, but not sure what you think is best from a functionality standpoint? In my opinion, during development, these tasks should be as fast as possible.
The text was updated successfully, but these errors were encountered: