Skip to content

Commit e11cbad

Browse files
(#3685) Update build to use new dotnet aliases
1 parent 8855ff7 commit e11cbad

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

build.cake

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ Task("Restore-NuGet-Packages")
9595
.IsDependentOn("Clean")
9696
.Does<BuildParameters>((context, parameters) =>
9797
{
98-
DotNetCoreRestore("./src/Cake.sln", new DotNetCoreRestoreSettings
98+
DotNetRestore("./src/Cake.sln", new DotNetRestoreSettings
9999
{
100-
Verbosity = DotNetCoreVerbosity.Minimal,
100+
Verbosity = DotNetVerbosity.Minimal,
101101
Sources = new [] { "https://api.nuget.org/v3/index.json" },
102102
MSBuildSettings = parameters.MSBuildSettings
103103
});
@@ -109,7 +109,7 @@ Task("Build")
109109
{
110110
// Build the solution.
111111
var path = MakeAbsolute(new DirectoryPath("./src/Cake.sln"));
112-
DotNetCoreBuild(path.FullPath, new DotNetCoreBuildSettings()
112+
DotNetBuild(path.FullPath, new DotNetBuildSettings
113113
{
114114
Configuration = parameters.Configuration,
115115
NoRestore = true,
@@ -128,7 +128,7 @@ Task("Run-Unit-Tests")
128128
FilePath testResultsPath = MakeAbsolute(parameters.Paths.Directories.TestResults
129129
.CombineWithFilePath($"{project.GetFilenameWithoutExtension()}_{framework}_TestResults.xml"));
130130

131-
DotNetCoreTest(project.FullPath, new DotNetCoreTestSettings
131+
DotNetTest(project.FullPath, new DotNetTestSettings
132132
{
133133
Framework = framework,
134134
NoBuild = true,
@@ -153,7 +153,7 @@ Task("Create-NuGet-Packages")
153153
continue;
154154
}
155155

156-
DotNetCorePack(project.FullPath, new DotNetCorePackSettings {
156+
DotNetPack(project.FullPath, new DotNetPackSettings {
157157
Configuration = parameters.Configuration,
158158
OutputDirectory = parameters.Paths.Directories.NuGetRoot,
159159
NoBuild = true,
@@ -245,12 +245,12 @@ Task("Publish-MyGet")
245245
foreach(var package in parameters.Packages.NuGet)
246246
{
247247
// Push the package.
248-
var settings = new DotNetCoreNuGetPushSettings {
248+
var settings = new DotNetNuGetPushSettings {
249249
ApiKey = apiKey,
250250
Source = apiUrl
251251
};
252252

253-
DotNetCoreNuGetPush(package.PackagePath.FullPath, settings);
253+
DotNetNuGetPush(package.PackagePath.FullPath, settings);
254254
}
255255
})
256256
.OnError<BuildParameters>((exception, parameters) =>
@@ -280,12 +280,12 @@ Task("Publish-NuGet")
280280
foreach(var package in parameters.Packages.NuGet)
281281
{
282282
// Push the package.
283-
var settings = new DotNetCoreNuGetPushSettings {
283+
var settings = new DotNetNuGetPushSettings {
284284
ApiKey = apiKey,
285285
Source = apiUrl
286286
};
287287

288-
DotNetCoreNuGetPush(package.PackagePath.FullPath, settings);
288+
DotNetNuGetPush(package.PackagePath.FullPath, settings);
289289
}
290290
})
291291
.OnError<BuildParameters>((exception, parameters) =>
@@ -338,10 +338,10 @@ Task("Frosting-Integration-Tests")
338338
new FilePath("tests/integration/Cake.Frosting/build/Build.csproj")
339339
);
340340

341-
DotNetCoreBuild(project.FullPath,
342-
new DotNetCoreBuildSettings
341+
DotNetBuild(project.FullPath,
342+
new DotNetBuildSettings
343343
{
344-
Verbosity = DotNetCoreVerbosity.Quiet,
344+
Verbosity = DotNetVerbosity.Quiet,
345345
Configuration = parameters.Configuration,
346346
MSBuildSettings = parameters.MSBuildSettings
347347
});
@@ -363,10 +363,10 @@ Task("Frosting-Integration-Tests")
363363
{
364364
Information("Testing: {0}", test.Framework);
365365

366-
DotNetCoreRun(test.Project.FullPath,
366+
DotNetRun(test.Project.FullPath,
367367
new ProcessArgumentBuilder()
368368
.AppendSwitchQuoted("--verbosity", "=", "quiet"),
369-
new DotNetCoreRunSettings
369+
new DotNetRunSettings
370370
{
371371
Configuration = parameters.Configuration,
372372
Framework = test.Framework,

build/parameters.cake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class BuildParameters
2828
public BuildPaths Paths { get; }
2929
public BuildPackages Packages { get; }
3030
public bool PublishingError { get; set; }
31-
public DotNetCoreMSBuildSettings MSBuildSettings { get; }
31+
public DotNetMSBuildSettings MSBuildSettings { get; }
3232

3333
public bool ShouldPublish
3434
{
@@ -118,7 +118,7 @@ public class BuildParameters
118118
ReleaseNotes.Notes.ToArray()
119119
);
120120

121-
MSBuildSettings = new DotNetCoreMSBuildSettings {
121+
MSBuildSettings = new DotNetMSBuildSettings {
122122
Version = Version.SemVersion,
123123
AssemblyVersion = Version.Version,
124124
FileVersion = Version.Version,

0 commit comments

Comments
 (0)