Reputation: 5624
In Eclipse we "clean". In Ant we "clean".
How do we clean or force a rebuild with DotNet Core command on the Mac? Trying to rebuild with the simple build command wont build.
Project library (.NETStandard,Version=v1.6) was previously compiled. Skipping compilation.
Project test-library (.NETCoreApp,Version=v1.0) was previously compiled. Skipping compilation.
No executable found matching command "dotnet-clean"
$ :(
Edit: Just a note that dotnet clean
now is a command.
Upvotes: 27
Views: 24675
Reputation: 4886
Use:
dotnet build --no-incremental
As stated in .NET Core SDK Documentation, --no-incremental
option:
Marks the build as unsafe for incremental build. This flag turns off incremental compilation and forces a clean rebuild of the project's dependency graph.
Upvotes: 60