diff --git a/appveyor.yml b/appveyor.yml index 1db7862..8418e16 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ artifacts: configuration: Debug -image: Visual Studio 2017 +image: Visual Studio 2019 build_script: - cmd: powershell -NoProfile -ExecutionPolicy unrestricted -Command .\build.ps1 diff --git a/build.cake b/build.cake index 159152f..4bb8a9d 100644 --- a/build.cake +++ b/build.cake @@ -37,23 +37,17 @@ Task("Clean") Task("Restore-NuGet-Packages") .Does(() => { - MSBuild(solutionFile, settings => - settings - .WithTarget("Restore") - .SetConfiguration(configuration) - ); + DotNetCoreRestore(solutionFile); }); Task("Build") .IsDependentOn("Restore-NuGet-Packages") .Does(() => { - // Use MSBuild for the Sln, but deploy - MSBuild(solutionFile, settings => - settings - .WithTarget("Build") - .SetConfiguration(configuration) - ); + DotNetCoreBuild(solutionFile, new DotNetCoreBuildSettings + { + Configuration = Argument("configuration", configuration) + }); }); Task("Test") @@ -73,13 +67,11 @@ Task("Create-NuGet-Packages") .IsDependentOn("Build") .Does(() => { - var settings = new MSBuildSettings() - .WithTarget("Pack") - .SetConfiguration(configuration) - .WithProperty("PackageOutputPath",artifactDirectory); - - // Pack the Sln (unit tests has the to false) - MSBuild(solutionFile, settings); + DotNetCorePack(solutionFile, new DotNetCorePackSettings + { + Configuration = configuration, + OutputDirectory = artifactDirectory + }); }); ////////////////////////////////////////////////////////////////////// diff --git a/src/FileCache.Signed/FileCache.Signed.csproj b/src/FileCache.Signed/FileCache.Signed.csproj index 3316508..97a3cb7 100644 --- a/src/FileCache.Signed/FileCache.Signed.csproj +++ b/src/FileCache.Signed/FileCache.Signed.csproj @@ -1,6 +1,6 @@  - net40;net45;netstandard2.0 + net40;net45;net48;netstandard2.0;netstandard2.1 false cache objectcache System.Runtime.Caching.ObjectCache Apache-2.0 @@ -39,7 +39,7 @@ - + All @@ -50,7 +50,13 @@ + + + + + + \ No newline at end of file diff --git a/src/FileCache/FileCache.csproj b/src/FileCache/FileCache.csproj index f184cee..7a2cb3a 100644 --- a/src/FileCache/FileCache.csproj +++ b/src/FileCache/FileCache.csproj @@ -1,6 +1,6 @@  - net40;net45;netstandard2.0 + net40;net45;net48;netstandard2.0;netstandard2.1 false cache objectcache System.Runtime.Caching.ObjectCache Apache-2.0 @@ -29,7 +29,7 @@ - + All @@ -40,7 +40,13 @@ + + + + + + \ No newline at end of file