如何在 Mac 上使用 .NET Core 强制重建

How to force rebuild with .NET Core on the Mac

在 Eclipse 中我们“干净”。在 Ant 中,我们 "clean".

我们如何在 Mac 上使用 DotNet Core 命令清理或强制重建?尝试使用简单的构建命令重建不会构建。

   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"
$ :(

编辑:请注意 dotnet clean 现在是一个命令。

使用:

dotnet build --no-incremental

.NET Core SDK Documentation所述,--no-incremental选项:

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.