Sdk: Add `--no-build` to dotnet-run

Created on 9 Jun 2016  路  5Comments  路  Source: dotnet/sdk

Steps to reproduce

dotnet run --no-build

Expected behavior

Runs without building

Actual behavior

--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

enhancement

Most helpful comment

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.

All 5 comments

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aguacongas picture aguacongas  路  3Comments

clairernovotny picture clairernovotny  路  3Comments

thomaslevesque picture thomaslevesque  路  3Comments

fmorriso picture fmorriso  路  3Comments

srivatsn picture srivatsn  路  3Comments