Search code examples
c#cakebuild

CakeBuild: DotNetCoreBuild vs DotNetBuild?


What's the difference between DotNetCoreBuild vs DotNetBuild?

I used DotNetCoreBuild for my soluion. All projects in the solution are core projects. After adding a new not core project the build does not run anymore. The build endlose waits....

Is there another way to build mixed projects?


Solution

  • Back when Cake first started in 2014, there was no dotnet cli, or dotnet core, or standard, or anything like that. Instead, there was only MSBuild and XBuild. The DotNetBuild aliases were added as a convenience alias, which would, based on whether you were running on Windows or Posix, either shell out to MSBuild or XBuild. You can find information about this alias here:

    https://cakebuild.net/api/Cake.Common.Tools/DotNetBuildAliases/B154D87C

    Then, when the dotnet cli came about, we added another set of aliases use DotNetCore... which are responsible for shelling out to the dotnet cli. Information about these aliases can be found here:

    https://cakebuild.net/api/Cake.Common.Tools.DotNetCore/DotNetCoreAliases/