'How to force rebuild with .NET Core on the Mac
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.
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |