From bc8e57a5f710aae0e89d58a1906cf8ea8f1e5440 Mon Sep 17 00:00:00 2001 From: ryancheung Date: Wed, 13 Mar 2024 15:56:26 +0800 Subject: [PATCH] Cake build fix --- ImeSharp/ImeSharp.csproj | 5 +++++ build.cake | 16 ++++++++-------- 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ImeSharp/ImeSharp.csproj b/ImeSharp/ImeSharp.csproj index fc3f85a..cc78f76 100644 --- a/ImeSharp/ImeSharp.csproj +++ b/ImeSharp/ImeSharp.csproj @@ -13,6 +13,7 @@ https://github.com/ryancheung/ImeSharp ryancheung MIT + README.md @@ -27,4 +28,8 @@ + + + + diff --git a/build.cake b/build.cake index b999d27..e2911a6 100644 --- a/build.cake +++ b/build.cake @@ -1,4 +1,4 @@ -#tool nuget:?package=vswhere&version=2.6.7 +#tool nuget:?package=vswhere&version=3.1.7 ////////////////////////////////////////////////////////////////////// // ARGUMENTS @@ -14,12 +14,12 @@ var apiKey = Argument("api-key", ""); ////////////////////////////////////////////////////////////////////// MSBuildSettings msPackSettings; -DotNetCoreMSBuildSettings dnBuildSettings; -DotNetCorePackSettings dnPackSettings; +DotNetMSBuildSettings dnBuildSettings; +DotNetPackSettings dnPackSettings; private void PackDotnet(string filePath) { - DotNetCorePack(filePath, dnPackSettings); + DotNetPack(filePath, dnPackSettings); } private void PackMSBuild(string filePath) @@ -73,12 +73,12 @@ Task("Prep") msPackSettings.WithProperty("Version", version); msPackSettings.WithTarget("Pack"); - dnBuildSettings = new DotNetCoreMSBuildSettings(); + dnBuildSettings = new DotNetMSBuildSettings(); dnBuildSettings.WithProperty("Version", version); - dnPackSettings = new DotNetCorePackSettings(); + dnPackSettings = new DotNetPackSettings(); dnPackSettings.MSBuildSettings = dnBuildSettings; - dnPackSettings.Verbosity = DotNetCoreVerbosity.Minimal; + dnPackSettings.Verbosity = DotNetVerbosity.Minimal; dnPackSettings.Configuration = configuration; }); @@ -87,7 +87,7 @@ Task("Build") .WithCriteria(() => IsRunningOnWindows()) .Does(() => { - DotNetCoreRestore("ImeSharp/ImeSharp.csproj"); + DotNetRestore("ImeSharp/ImeSharp.csproj"); PackDotnet("ImeSharp/ImeSharp.csproj"); });