-
-
Notifications
You must be signed in to change notification settings - Fork 726
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#3547) Add DotNetBuild alias (synonym to DotNetCoreBuild)
- Loading branch information
1 parent
9d53cce
commit 22986b0
Showing
5 changed files
with
154 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Collections.Generic; | ||
using Cake.Common.Tools.DotNetCore; | ||
using Cake.Common.Tools.DotNetCore.Build; | ||
using Cake.Common.Tools.DotNetCore.MSBuild; | ||
using Cake.Core.IO; | ||
|
||
namespace Cake.Common.Tools.DotNet.Build | ||
{ | ||
/// <summary> | ||
/// Contains settings used by <see cref="DotNetCoreBuilder" />. | ||
/// </summary> | ||
public class DotNetBuildSettings : DotNetCoreSettings | ||
{ | ||
/// <summary> | ||
/// Gets or sets the output directory. | ||
/// </summary> | ||
public DirectoryPath OutputDirectory { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the target runtime. | ||
/// </summary> | ||
public string Runtime { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the configuration under which to build. | ||
/// </summary> | ||
public string Configuration { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the specific framework to compile. | ||
/// </summary> | ||
public string Framework { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the value that defines what `*` should be replaced with in version field in project.json. | ||
/// </summary> | ||
public string VersionSuffix { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to mark the build as unsafe for incrementality. | ||
/// This turns off incremental compilation and forces a clean rebuild of the project dependency graph. | ||
/// </summary> | ||
public bool NoIncremental { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to ignore project to project references and only build the root project. | ||
/// </summary> | ||
public bool NoDependencies { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to not do implicit NuGet package restore. | ||
/// This makes build faster, but requires restore to be done before build is executed. | ||
/// </summary> | ||
/// <remarks> | ||
/// Requires .NET Core 2.x or newer. | ||
/// </remarks> | ||
public bool NoRestore { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating whether to display the startup banner or the copyright message. | ||
/// </summary> | ||
/// <remarks> | ||
/// Available since .NET Core 3.0 SDK. | ||
/// </remarks> | ||
public bool NoLogo { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the specified NuGet package sources to use during the build. | ||
/// </summary> | ||
/// <remarks> | ||
/// Requires .NET Core 2.x or newer. | ||
/// </remarks> | ||
public ICollection<string> Sources { get; set; } = new List<string>(); | ||
|
||
/// <summary> | ||
/// Gets or sets additional arguments to be passed to MSBuild. | ||
/// </summary> | ||
public DotNetCoreMSBuildSettings MSBuildSettings { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters