dotnet run --no-build
Runs without building
--no-build is not an option
https://github.com/dotnet/cli/blob/rel/1.0.0/src/dotnet/commands/dotnet-run/Program.cs#L24
It'd be nice if we had a manual gesture to avoid rebuilding every time we use dotnet run.
Especially to support things like:
https://github.com/dotnet/cli/issues/2174
@eerhardt @piotrpMSFT
We have incremental builds and the output issue is fixed with msbuild. We will print warnings and errors only.
Project Foobar.Portal (.NETFramework,Version=v4.6) will be compiled because project is not safe for incremental compilation. Use --build-profile flag for more information.
Compiling Foobar.Portal for .NETFramework,Version=v4.6
We have project that pulls half the world through npm & bower. It's insanity to do this every time I want to just run the project. Please reconsider.
dotnet run3 had a --no-build option, but it was removed when all the "3" verbs merged into the real verbs. See https://github.com/dotnet/cli/pull/4456/files#diff-4ac6ca4a2bb05034c3d8e7d89d01ae8b
@piotrpMSFT - was this an explicit decision to remove this option when you did the merge?
@eerhardt no. The merge was driven by maintaing 'old' tests. I made some effort to look for diffs in 'new' tests but focused on not regressing. We should add this back.
We have a --no-build flag on run. Closing.
Most helpful comment
We have project that pulls half the world through npm & bower. It's insanity to do this every time I want to just run the project. Please reconsider.