Skip to content

Commit

Permalink
Build using standard "dotnet tool restore" / "dotnet cake", update to…
Browse files Browse the repository at this point in the history
… Cake 3.1
  • Loading branch information
christophwille committed Jul 23, 2023
1 parent 8a29f16 commit 2070988
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 356 deletions.
12 changes: 12 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"cake.tool": {
"version": "3.1.0",
"commands": [
"dotnet-cake"
]
}
}
}
6 changes: 3 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ var netCoreProject = new {
.IsDependentOn("Clean")
.Does(() =>
{
DotNetCoreRestore(netCoreProject.Path);
DotNetRestore(netCoreProject.Path);
});

Task("Build-NetCore")
.IsDependentOn("Restore-NetCore")
.Does(() =>
{
Information("Building: {0}", netCoreProject.Name);
DotNetCoreBuild(netCoreProject.Path, new DotNetCoreBuildSettings {
DotNetBuild(netCoreProject.Path, new DotNetBuildSettings {
Configuration = configuration
});
});
Expand All @@ -54,7 +54,7 @@ var netCoreProject = new {
var outputDir = artifactsDir.Combine(runtime);
Information("Publishing: {0}, runtime: {1}", netCoreProject.Name, runtime);
DotNetCorePublish(netCoreProject.Path, new DotNetCorePublishSettings {
DotNetPublish(netCoreProject.Path, new DotNetPublishSettings {
Framework = netCoreProject.Framework,
Configuration = configuration,
Runtime = runtime,
Expand Down
236 changes: 0 additions & 236 deletions build.ps1

This file was deleted.

117 changes: 0 additions & 117 deletions build.sh

This file was deleted.

0 comments on commit 2070988

Please # to comment.