From 4621d59954c056c6410d6283b2c57ca884414d50 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 02:10:21 +0100 Subject: [PATCH 01/21] Add DotMemoryUnitTasks --- build/specifications/DotMemoryUnit.json | 8 ++++ .../DotMemoryUnit/DotMemoryUnit.Generated.cs | 38 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 build/specifications/DotMemoryUnit.json create mode 100644 source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs diff --git a/build/specifications/DotMemoryUnit.json b/build/specifications/DotMemoryUnit.json new file mode 100644 index 000000000..71ce56b53 --- /dev/null +++ b/build/specifications/DotMemoryUnit.json @@ -0,0 +1,8 @@ +{ + "$schema": "https://raw.githubusercontent.com/nuke-build/nuke/master/source/Nuke.CodeGeneration/schema.json", + "name": "DotMemoryUnit", + "officialUrl": "https://www.jetbrains.com/dotmemory/unit/", + "help": "dotMemory Unit is a unit testing framework which allows you to write tests that check your code for all kinds of memory issues. You can now extend NUnit, MSTest or another .NET unit testing framework with the functionality of a memory profiler.Perfect fit for any workflow: integrated with Visual Studio, works with stand-alone unit test runners, Continuous Integration ready. Last but not least, dotMemory Unit is free.", + "packageId": "JetBrains.DotMemoryUnit", + "packageExecutable": "dotMemoryUnit.exe" +} \ No newline at end of file diff --git a/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs b/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs new file mode 100644 index 000000000..58a2701c8 --- /dev/null +++ b/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs @@ -0,0 +1,38 @@ +// Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/DotMemoryUnit.json +// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) + +using JetBrains.Annotations; +using Newtonsoft.Json; +using Nuke.Common; +using Nuke.Common.Execution; +using Nuke.Common.Tooling; +using Nuke.Common.Tools; +using Nuke.Common.Utilities.Collections; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.ComponentModel; +using System.Diagnostics.CodeAnalysis; +using System.IO; +using System.Linq; +using System.Text; + +namespace Nuke.Common.Tools.DotMemoryUnit +{ + [PublicAPI] + [ExcludeFromCodeCoverage] + public static partial class DotMemoryUnitTasks + { + ///

Path to the DotMemoryUnit executable.

+ public static string DotMemoryUnitPath => + ToolPathResolver.TryGetEnvironmentExecutable("DOTMEMORYUNIT_EXE") ?? + ToolPathResolver.GetPackageExecutable("JetBrains.DotMemoryUnit", "dotMemoryUnit.exe"); + ///

dotMemory Unit is a unit testing framework which allows you to write tests that check your code for all kinds of memory issues. You can now extend NUnit, MSTest or another .NET unit testing framework with the functionality of a memory profiler.Perfect fit for any workflow: integrated with Visual Studio, works with stand-alone unit test runners, Continuous Integration ready. Last but not least, dotMemory Unit is free.

+ public static IReadOnlyCollection DotMemoryUnit(string arguments, string workingDirectory = null, IReadOnlyDictionary environmentVariables = null, int? timeout = null, bool logOutput = true, Func outputFilter = null) + { + var process = ProcessTasks.StartProcess(DotMemoryUnitPath, arguments, workingDirectory, environmentVariables, timeout, logOutput, null, outputFilter); + process.AssertZeroExitCode(); + return process.Output; + } + } +} From 7b226d744e8d6a3c5fd78bab0568259a7161d9b3 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 02:10:32 +0100 Subject: [PATCH 02/21] Update dotsettings --- build/_build.csproj.DotSettings | 1 + source/CodeStyle.DotSettings | 1 + 2 files changed, 2 insertions(+) diff --git a/build/_build.csproj.DotSettings b/build/_build.csproj.DotSettings index 5af2bdc90..9aac7d8e8 100644 --- a/build/_build.csproj.DotSettings +++ b/build/_build.csproj.DotSettings @@ -17,6 +17,7 @@ True True True + True True True True diff --git a/source/CodeStyle.DotSettings b/source/CodeStyle.DotSettings index a615e7efc..9922be5d3 100644 --- a/source/CodeStyle.DotSettings +++ b/source/CodeStyle.DotSettings @@ -95,6 +95,7 @@ True True True + True True True True From e51c4bf08711475bed620c5651bfc527a5820de3 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 14:22:28 +0100 Subject: [PATCH 03/21] Add ToolSettings.When for conditional fluent modifications --- source/Nuke.Common/Tooling/ToolSettingsExtensions.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Nuke.Common/Tooling/ToolSettingsExtensions.cs b/source/Nuke.Common/Tooling/ToolSettingsExtensions.cs index 5a28e0853..3d62b674e 100644 --- a/source/Nuke.Common/Tooling/ToolSettingsExtensions.cs +++ b/source/Nuke.Common/Tooling/ToolSettingsExtensions.cs @@ -13,6 +13,11 @@ namespace Nuke.Common.Tooling [ExcludeFromCodeCoverage] public static class ToolSettingsExtensions { + public static T When(this T settings, bool condition, Configure configurator) + { + return condition ? configurator(settings) : settings; + } + [Pure] public static T AddEnvironmentVariable( this T toolSettings, From 1b5036e2ce94eae98f142da5424a496a0b011c18 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 14:25:03 +0100 Subject: [PATCH 04/21] Check path variable only when log level is lower than Information --- source/Nuke.Common/Tooling/ProcessManager.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/Nuke.Common/Tooling/ProcessManager.cs b/source/Nuke.Common/Tooling/ProcessManager.cs index c164a3574..387a5475a 100644 --- a/source/Nuke.Common/Tooling/ProcessManager.cs +++ b/source/Nuke.Common/Tooling/ProcessManager.cs @@ -210,6 +210,9 @@ private static void PrintEnvironmentVariables(ProcessStartInfo startInfo) public static void CheckPathEnvironmentVariable() { + if (Logger.LogLevel >= LogLevel.Information) + return; + EnvironmentInfo.Variables .SingleOrDefault(x => x.Key.EqualsOrdinalIgnoreCase("path")) .Value.Split(s_pathSeparators, StringSplitOptions.RemoveEmptyEntries) From b2a36a0233bbbd73b491621f90d1aa3ce5b356db Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 14:54:06 +0100 Subject: [PATCH 05/21] Disable symbol source --- build/Build.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/Build.cs b/build/Build.cs index 461692b88..db2c399a3 100644 --- a/build/Build.cs +++ b/build/Build.cs @@ -1,4 +1,4 @@ -// Copyright 2018 Maintainers of NUKE. +// Copyright 2018 Maintainers of NUKE. // Distributed under the MIT License. // https://github.com/nuke-build/nuke/blob/master/LICENSE @@ -208,7 +208,7 @@ partial class Build : NukeBuild .ForEach(x => DotNetNuGetPush(s => s .SetTargetPath(x) .SetSource(Source) - .SetSymbolSource(SymbolSource) + // .SetSymbolSource(SymbolSource) .SetApiKey(ApiKey))); if (GitRepository.Branch.EqualsOrdinalIgnoreCase(MasterBranch)) From 4ab12b80c67027170b13000c919824a39cb8fc65 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 15:02:13 +0100 Subject: [PATCH 06/21] Add MSBuildSettings.Restore --- build/specifications/MSBuild.json | 6 +++ .../Tools/MSBuild/MSBuild.Generated.cs | 45 +++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/build/specifications/MSBuild.json b/build/specifications/MSBuild.json index 15f7a9846..0dbf261e6 100644 --- a/build/specifications/MSBuild.json +++ b/build/specifications/MSBuild.json @@ -223,6 +223,12 @@ } ] }, + { + "name": "Restore", + "type": "bool", + "format": "/restore", + "help": "Runs the Restore target prior to building the actual targets." + }, { "name": "Targets", "type": "List", diff --git a/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs b/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs index 42bd1b0b3..586a1bafe 100644 --- a/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs +++ b/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs @@ -73,6 +73,8 @@ public partial class MSBuildSettings : ToolSettings ///

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

public virtual IReadOnlyDictionary Properties => PropertiesInternal.AsReadOnly(); internal Dictionary PropertiesInternal { get; set; } = new Dictionary(StringComparer.OrdinalIgnoreCase); + ///

Runs the Restore target prior to building the actual targets.

+ public virtual bool? Restore { get; internal set; } ///

Build the specified targets in the project. Specify each target separately, or use a semicolon or comma to separate multiple targets, as the following example shows:
/target:Resources;Compile

If you specify any targets by using this switch, they are run instead of any targets in the DefaultTargets attribute in the project file. For more information, see Target Build Order and How to: Specify Which Target to Build First.

A target is a group of tasks. For more information, see Targets.

public virtual IReadOnlyList Targets => TargetsInternal.AsReadOnly(); internal List TargetsInternal { get; set; } = new List(); @@ -104,6 +106,7 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("/nologo", NoLogo) .Add("/p:Platform={value}", GetTargetPlatform(), customValue: true) .Add("/p:{value}", Properties, "{key}={value}", disallowed: ';') + .Add("/restore", Restore) .Add("/target:{value}", Targets, separator: ';') .Add("/toolsversion:{value}", ToolsVersion) .Add("/verbosity:{value}", Verbosity) @@ -1415,6 +1418,48 @@ public static MSBuildSettings ResetRestoreOutputPath(this MSBuildSettings toolSe } #endregion #endregion + #region Restore + ///

Sets .

Runs the Restore target prior to building the actual targets.

+ [Pure] + public static MSBuildSettings SetRestore(this MSBuildSettings toolSettings, bool? restore) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Restore = restore; + return toolSettings; + } + ///

Resets .

Runs the Restore target prior to building the actual targets.

+ [Pure] + public static MSBuildSettings ResetRestore(this MSBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Restore = null; + return toolSettings; + } + ///

Enables .

Runs the Restore target prior to building the actual targets.

+ [Pure] + public static MSBuildSettings EnableRestore(this MSBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Restore = true; + return toolSettings; + } + ///

Disables .

Runs the Restore target prior to building the actual targets.

+ [Pure] + public static MSBuildSettings DisableRestore(this MSBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Restore = false; + return toolSettings; + } + ///

Toggles .

Runs the Restore target prior to building the actual targets.

+ [Pure] + public static MSBuildSettings ToggleRestore(this MSBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Restore = !toolSettings.Restore; + return toolSettings; + } + #endregion #region Targets ///

Sets to a new list.

Build the specified targets in the project. Specify each target separately, or use a semicolon or comma to separate multiple targets, as the following example shows:
/target:Resources;Compile

If you specify any targets by using this switch, they are run instead of any targets in the DefaultTargets attribute in the project file. For more information, see Target Build Order and How to: Specify Which Target to Build First.

A target is a group of tasks. For more information, see Targets.

[Pure] From 9851ffff768daf16fd785041e6edfe960e8619aa Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 15:03:42 +0100 Subject: [PATCH 07/21] Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 406676897..9bf141802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [vNext] +- Change `CheckPathEnvironmentVariable` to be executed only with `Trace` log level +- Added `ToolSettings.When` for conditional fluent modifications +- Added `DotMemoryUnitTasks` +- Added `MSBuildSettings.Restore` ## [0.12.4] / 2018-12-02 - Fixed `SolutionAttribute` to handle empty configuration file From 864cb2dbb65a6a041003546fe75075bb377e5b12 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 2 Dec 2018 23:16:46 +0100 Subject: [PATCH 08/21] Add project link for azure-pipelines.yml --- build/_build.csproj | 1 + source/Nuke.GlobalTool/templates/_build.sdk.csproj | 1 + 2 files changed, 2 insertions(+) diff --git a/build/_build.csproj b/build/_build.csproj index e2d730ddf..60a548b93 100644 --- a/build/_build.csproj +++ b/build/_build.csproj @@ -41,6 +41,7 @@ + diff --git a/source/Nuke.GlobalTool/templates/_build.sdk.csproj b/source/Nuke.GlobalTool/templates/_build.sdk.csproj index 1f35a1a38..c4870f091 100644 --- a/source/Nuke.GlobalTool/templates/_build.sdk.csproj +++ b/source/Nuke.GlobalTool/templates/_build.sdk.csproj @@ -26,6 +26,7 @@ + From 98b1ecc70eea763c2564513416058cc67fd00d9a Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Tue, 4 Dec 2018 17:52:33 +0100 Subject: [PATCH 09/21] Add links for plugins in Build.cs template --- source/Nuke.GlobalTool/templates/Build.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Nuke.GlobalTool/templates/Build.cs b/source/Nuke.GlobalTool/templates/Build.cs index 82f1635ae..87f179348 100644 --- a/source/Nuke.GlobalTool/templates/Build.cs +++ b/source/Nuke.GlobalTool/templates/Build.cs @@ -17,6 +17,11 @@ class Build : NukeBuild { + // Support plugins are available for: + // - Rider https://plugins.jetbrains.com/plugin/10803-nuke-support + // - ReSharper https://resharper-plugins.jetbrains.com/packages/ReSharper.Nuke/ + // - VSCode https://marketplace.visualstudio.com/items?itemName=nuke.support + public static int Main () => Execute(x => x.Compile); [Parameter("Configuration to build - Default is 'Debug' (local) or 'Release' (server)")] From 2de0d61cdb34654d73998665163faad86a1455b0 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Wed, 5 Dec 2018 00:20:02 +0100 Subject: [PATCH 10/21] Change StringExtensions.Split to control inclusion of splitting character --- .../Nuke.Common.Tests/StringExtensionsTest.cs | 11 +++++++++++ source/Nuke.Common/EnvironmentInfo.Others.cs | 17 +++++++++-------- source/Nuke.Common/Utilities/String.Split.cs | 15 +++++++++------ 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/source/Nuke.Common.Tests/StringExtensionsTest.cs b/source/Nuke.Common.Tests/StringExtensionsTest.cs index 45bd4c8fe..e8aa8970f 100644 --- a/source/Nuke.Common.Tests/StringExtensionsTest.cs +++ b/source/Nuke.Common.Tests/StringExtensionsTest.cs @@ -5,6 +5,7 @@ using System; using System.Linq; using FluentAssertions; +using Microsoft.SqlServer.Server; using Nuke.Common.Utilities; using Xunit; @@ -30,5 +31,15 @@ public void TestTrimMatchingQuotes(string input, char quote, string expected) { input.TrimMatchingQuotes(quote).Should().Be(expected); } + + [Fact] + public void TestSplit() + { + "msbuild-configuration".Split(x => !char.IsLetter(x)) + .Should().Equal("msbuild", "configuration"); + + "MSBuildConfiguration".SplitCamelHumps() + .Should().Equal("MSBuild", "Configuration"); + } } } diff --git a/source/Nuke.Common/EnvironmentInfo.Others.cs b/source/Nuke.Common/EnvironmentInfo.Others.cs index 4aab7411d..cb96bafb1 100644 --- a/source/Nuke.Common/EnvironmentInfo.Others.cs +++ b/source/Nuke.Common/EnvironmentInfo.Others.cs @@ -93,17 +93,18 @@ public static string[] ParseCommandLineArguments(string commandLine) var inDoubleQuotes = false; var escaped = false; return commandLine.Split(x => - { - if (x == '\"' && !inSingleQuotes && !escaped) - inDoubleQuotes = !inDoubleQuotes; + { + if (x == '\"' && !inSingleQuotes && !escaped) + inDoubleQuotes = !inDoubleQuotes; - if (x == '\'' && !inDoubleQuotes && !escaped) - inSingleQuotes = !inSingleQuotes; + if (x == '\'' && !inDoubleQuotes && !escaped) + inSingleQuotes = !inSingleQuotes; - escaped = x == '\\' && !escaped; + escaped = x == '\\' && !escaped; - return x == ' ' && !(inDoubleQuotes || inSingleQuotes); - }) + return x == ' ' && !(inDoubleQuotes || inSingleQuotes); + }, + includeSplitCharacter: true) .Select(x => x.Trim().TrimMatchingDoubleQuotes().TrimMatchingQuotes().Replace("\\\"", "\"").Replace("\\\'", "'")) .Where(x => !string.IsNullOrEmpty(x)) .ToArray(); diff --git a/source/Nuke.Common/Utilities/String.Split.cs b/source/Nuke.Common/Utilities/String.Split.cs index e94e877e0..ec0a794a5 100644 --- a/source/Nuke.Common/Utilities/String.Split.cs +++ b/source/Nuke.Common/Utilities/String.Split.cs @@ -13,7 +13,7 @@ namespace Nuke.Common.Utilities public static partial class StringExtensions { [Pure] - public static IEnumerable Split(this string str, Func predicate) + public static IEnumerable Split(this string str, Func predicate, bool includeSplitCharacter = false) { var next = 0; for (var i = 0; i < str.Length; i++) @@ -23,6 +23,8 @@ public static IEnumerable Split(this string str, Func predic yield return str.Substring(next, i - next); next = i; + if (!includeSplitCharacter) + next++; } yield return str.Substring(next); @@ -33,12 +35,13 @@ public static IEnumerable SplitCamelHumps(this string str) { var hadLower = false; return str.Split(c => - { - var shouldSplit = hadLower && char.IsUpper(c); - hadLower = char.IsLower(c) && !shouldSplit; + { + var shouldSplit = hadLower && char.IsUpper(c); + hadLower = char.IsLower(c) && !shouldSplit; - return shouldSplit; - }); + return shouldSplit; + }, + includeSplitCharacter: true); } [Pure] From be3c3fd8278b575cec24a5636868d8617eea03bc Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Wed, 5 Dec 2018 00:30:27 +0100 Subject: [PATCH 11/21] Add StringExtensions methods --- .../Generators/StringExtensions.cs | 6 ------ source/Nuke.Common/Utilities/String.Join.cs | 1 + .../Utilities/StringExtensions.Capitalize.cs | 19 +++++++++++++++++++ .../Utilities/StringExtensions.Indent.cs | 17 +++++++++++++++++ 4 files changed, 37 insertions(+), 6 deletions(-) create mode 100644 source/Nuke.Common/Utilities/StringExtensions.Capitalize.cs create mode 100644 source/Nuke.Common/Utilities/StringExtensions.Indent.cs diff --git a/source/Nuke.CodeGeneration/Generators/StringExtensions.cs b/source/Nuke.CodeGeneration/Generators/StringExtensions.cs index 020d6b358..ee51ce31d 100644 --- a/source/Nuke.CodeGeneration/Generators/StringExtensions.cs +++ b/source/Nuke.CodeGeneration/Generators/StringExtensions.cs @@ -112,12 +112,6 @@ public static string EscapeProperty(this string propertyName) return s_reservedWords.Contains(propertyName) ? propertyName + "_" : propertyName; } - public static string ToMember(this string text) - { - return text.Substring(startIndex: 0, length: 1).ToUpper(CultureInfo.InvariantCulture) + - text.Substring(startIndex: 1); - } - public static string Paragraph([CanBeNull] this string text) { if (text == null) diff --git a/source/Nuke.Common/Utilities/String.Join.cs b/source/Nuke.Common/Utilities/String.Join.cs index 9a3aae22e..e871e6a9b 100644 --- a/source/Nuke.Common/Utilities/String.Join.cs +++ b/source/Nuke.Common/Utilities/String.Join.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Linq; using JetBrains.Annotations; diff --git a/source/Nuke.Common/Utilities/StringExtensions.Capitalize.cs b/source/Nuke.Common/Utilities/StringExtensions.Capitalize.cs new file mode 100644 index 000000000..1c108e655 --- /dev/null +++ b/source/Nuke.Common/Utilities/StringExtensions.Capitalize.cs @@ -0,0 +1,19 @@ +// Copyright 2018 Maintainers of NUKE. +// Distributed under the MIT License. +// https://github.com/nuke-build/nuke/blob/master/LICENSE + +using System.Globalization; +using JetBrains.Annotations; + +namespace Nuke.Common.Utilities +{ + public static partial class StringExtensions + { + [Pure] + public static string Capitalize(this string text) + { + return text.Substring(startIndex: 0, length: 1).ToUpper(CultureInfo.InvariantCulture) + + text.Substring(startIndex: 1); + } + } +} diff --git a/source/Nuke.Common/Utilities/StringExtensions.Indent.cs b/source/Nuke.Common/Utilities/StringExtensions.Indent.cs new file mode 100644 index 000000000..51edce43d --- /dev/null +++ b/source/Nuke.Common/Utilities/StringExtensions.Indent.cs @@ -0,0 +1,17 @@ +// Copyright 2018 Maintainers of NUKE. +// Distributed under the MIT License. +// https://github.com/nuke-build/nuke/blob/master/LICENSE + +using JetBrains.Annotations; + +namespace Nuke.Common.Utilities +{ + public static partial class StringExtensions + { + [Pure] + public static string Indent(this string text, int count) + { + return new string(' ', count) + text; + } + } +} From 7d6d2394c97962f3f571ebde34815dd75daa3eb8 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 9 Dec 2018 17:52:47 +0100 Subject: [PATCH 12/21] Add StringExtensions methods for GitHub repository owner and name --- source/Nuke.Common/Git/GitRepositoryExtensions.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/source/Nuke.Common/Git/GitRepositoryExtensions.cs b/source/Nuke.Common/Git/GitRepositoryExtensions.cs index f3e48eefe..ffba3f27c 100644 --- a/source/Nuke.Common/Git/GitRepositoryExtensions.cs +++ b/source/Nuke.Common/Git/GitRepositoryExtensions.cs @@ -57,6 +57,20 @@ public static bool IsGitHubRepository(this GitRepository repository) { return repository != null && repository.Endpoint.EqualsOrdinalIgnoreCase("github.com"); } + + public static string GetGitHubOwner(this GitRepository repository) + { + ControlFlow.Assert(repository.IsGitHubRepository(), "repository.IsGitHubRepository()"); + + return repository.Identifier.Split('/')[0]; + } + + public static string GetGitHubName(this GitRepository repository) + { + ControlFlow.Assert(repository.IsGitHubRepository(), "repository.IsGitHubRepository()"); + + return repository.Identifier.Split('/')[1]; + } /// Url in the form of https://raw.githubusercontent.com/{identifier}/blob/{branch}/{file}. public static string GetGitHubDownloadUrl(this GitRepository repository, string file, string branch = null) From 1e4db868a16250307dad767bf569a0f5ba58fd12 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 9 Dec 2018 17:53:24 +0100 Subject: [PATCH 13/21] Add parameter for attaching to VisualStudio debugger --- source/Nuke.Common/Execution/BuildExecutor.cs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/source/Nuke.Common/Execution/BuildExecutor.cs b/source/Nuke.Common/Execution/BuildExecutor.cs index f51e8e6b5..11bbb6adf 100644 --- a/source/Nuke.Common/Execution/BuildExecutor.cs +++ b/source/Nuke.Common/Execution/BuildExecutor.cs @@ -9,8 +9,7 @@ using System.IO; using System.Linq; using System.Linq.Expressions; -using System.Reflection; -using Nuke.Common.BuildServers; +using System.Threading; using Nuke.Common.IO; using Nuke.Common.OutputSinks; using Nuke.Common.Tooling; @@ -21,6 +20,7 @@ namespace Nuke.Common.Execution internal static class BuildExecutor { public const string DefaultTarget = "default"; + private const int c_debuggerAttachTimeout = 10_000; public static int Execute(Expression> defaultTargetExpression) where T : NukeBuild @@ -29,6 +29,7 @@ public static int Execute(Expression> defaultTargetExpression var build = CreateBuildInstance(defaultTargetExpression); HandleCompletion(build); + AttachVisualStudioDebugger(); try { @@ -77,6 +78,17 @@ public static int Execute(Expression> defaultTargetExpression } } + private static void AttachVisualStudioDebugger() + { + if (!ParameterService.Instance.GetParameter(nameof(AttachVisualStudioDebugger))) + return; + + File.WriteAllText(NukeBuild.TemporaryDirectory / "visual-studio.dbg", + Process.GetCurrentProcess().Id.ToString()); + ControlFlow.Assert(SpinWait.SpinUntil(() => Debugger.IsAttached, millisecondsTimeout: c_debuggerAttachTimeout), + $"VisualStudio debugger was not attached within timeout of {c_debuggerAttachTimeout} milliseconds."); + } + private static void HandleCompletion(NukeBuild build) { var completionItems = new SortedDictionary(); From 9d48919c27c3212e7a391cef247b296b6a83e138 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Sun, 9 Dec 2018 18:50:13 +0100 Subject: [PATCH 14/21] Add CODE_OF_CONDUCT.md and CONTRIBUTING.md --- CODE_OF_CONDUCT.md | 77 ++++++++++++++++++++++++++++++++++++++++++++++ CONTRIBUTING.md | 9 ++++++ nuke-common.sln | 2 ++ 3 files changed, 88 insertions(+) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 000000000..0e6c3e4f1 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,77 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting [Matthias Koch](mailto:ithrowexceptions@gmail.com). All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 000000000..208e59c0d --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,9 @@ +# Contribution Guidelines + +It is important to understand [our philosophy](https://nuke.build/docs/getting-started/philosophy.html). Of course we're grateful for any type of contribution or feedback. NUKE is a free open-source project, with the goal that many developers will benefit from it. Nevertheless, we do have several expectations on participation: + +- [Code of conduct](CODE_OF_CONDUCT.md) must be followed at any time +- Issue authors are required to become a [stargazer](https://github.com/nuke-build/nuke/stargazers) +- Bug reports must include information about the _actual behavior_, _expected behavior_ and _used versions_ +- Issues related to [unsupported tools](https://nuke.build/docs/authoring-builds/cli-tools.html#unsupported-tools) or [missing arguments](https://nuke.build/docs/authoring-builds/cli-tools.html#note-1) are not accepted anymore; given the declarative code-generation approach, we expect pull-requests instead +- Pull-requests don't imply any requirements yet, but we do recommend getting in touch first \ No newline at end of file diff --git a/nuke-common.sln b/nuke-common.sln index 9b2f65654..1084fc286 100644 --- a/nuke-common.sln +++ b/nuke-common.sln @@ -24,6 +24,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "misc", "misc", "{B43B0E45-8 source\Configuration.props = source\Configuration.props source\Inspections.DotSettings = source\Inspections.DotSettings source\Package.props = source\Package.props + CODE_OF_CONDUCT.md = CODE_OF_CONDUCT.md + CONTRIBUTING.md = CONTRIBUTING.md EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nuke.CodeGeneration", "source\Nuke.CodeGeneration\Nuke.CodeGeneration.csproj", "{34FBD413-AD5D-493E-BD61-ED8497D314A0}" From a76950e50159dc0ce110a800164cd39443f4c520 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 10:16:04 +0100 Subject: [PATCH 15/21] Add .editorconfig file --- .editorconfig | 1 - build/.editorconfig | 10 ++++++++++ source/Nuke.GlobalTool/Program.Setup.cs | 5 +++++ source/Nuke.GlobalTool/templates/.editorconfig | 10 ++++++++++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 build/.editorconfig create mode 100644 source/Nuke.GlobalTool/templates/.editorconfig diff --git a/.editorconfig b/.editorconfig index 54521db14..8d21f7a06 100644 --- a/.editorconfig +++ b/.editorconfig @@ -1,4 +1,3 @@ -# EditorConfig is awesome:http://EditorConfig.org # From https://raw.githubusercontent.com/dotnet/roslyn/master/.editorconfig # top-most EditorConfig file diff --git a/build/.editorconfig b/build/.editorconfig new file mode 100644 index 000000000..14c21e98a --- /dev/null +++ b/build/.editorconfig @@ -0,0 +1,10 @@ +[*.cs] +dotnet_style_qualification_for_field = false:warning +dotnet_style_qualification_for_property = false:warning +dotnet_style_qualification_for_method = false:warning +dotnet_style_qualification_for_event = false:warning +dotnet_style_require_accessibility_modifiers = never:warning + +csharp_style_expression_bodied_properties = true:warning +csharp_style_expression_bodied_indexers = true:warning +csharp_style_expression_bodied_accessors = true:warning diff --git a/source/Nuke.GlobalTool/Program.Setup.cs b/source/Nuke.GlobalTool/Program.Setup.cs index 5fdbdbec8..45a89b37c 100644 --- a/source/Nuke.GlobalTool/Program.Setup.cs +++ b/source/Nuke.GlobalTool/Program.Setup.cs @@ -212,6 +212,11 @@ private static int Setup(string[] args, [CanBeNull] string rootDirectory, [CanBe $"{buildProjectFile}.DotSettings", TemplateUtility.FillTemplate( GetTemplate("_build.csproj.DotSettings"))); + + TextTasks.WriteAllText( + Path.Combine(buildDirectory, ".editorconfig"), + TemplateUtility.FillTemplate( + GetTemplate(".editorconfig"))); TextTasks.WriteAllText( Path.Combine(buildDirectory, "Build.cs"), diff --git a/source/Nuke.GlobalTool/templates/.editorconfig b/source/Nuke.GlobalTool/templates/.editorconfig new file mode 100644 index 000000000..14c21e98a --- /dev/null +++ b/source/Nuke.GlobalTool/templates/.editorconfig @@ -0,0 +1,10 @@ +[*.cs] +dotnet_style_qualification_for_field = false:warning +dotnet_style_qualification_for_property = false:warning +dotnet_style_qualification_for_method = false:warning +dotnet_style_qualification_for_event = false:warning +dotnet_style_require_accessibility_modifiers = never:warning + +csharp_style_expression_bodied_properties = true:warning +csharp_style_expression_bodied_indexers = true:warning +csharp_style_expression_bodied_accessors = true:warning From aa71c3387960d7d1b0d847ec53ebf5a5610f854d Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 20:35:00 +0100 Subject: [PATCH 16/21] Fix target related properties to be set without reflection --- source/Nuke.Common/Execution/TargetDefinitionLoader.cs | 6 +++--- source/Nuke.Common/NukeBuild.Statics.cs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/Nuke.Common/Execution/TargetDefinitionLoader.cs b/source/Nuke.Common/Execution/TargetDefinitionLoader.cs index 5d2d0b251..cf3296456 100644 --- a/source/Nuke.Common/Execution/TargetDefinitionLoader.cs +++ b/source/Nuke.Common/Execution/TargetDefinitionLoader.cs @@ -39,9 +39,9 @@ public static IReadOnlyCollection GetExecutingTargets( string[] GetNames(IEnumerable targets) => targets.Select(x => x.Name).ToArray(); - ReflectionService.SetValue(typeof(NukeBuild), nameof(NukeBuild.InvokedTargets), GetNames(invokedTargets)); - ReflectionService.SetValue(typeof(NukeBuild), nameof(NukeBuild.SkippedTargets), GetNames(skippedTargets)); - ReflectionService.SetValue(typeof(NukeBuild), nameof(NukeBuild.ExecutingTargets), GetNames(executingTargets.Except(skippedTargets))); + NukeBuild.InvokedTargets = GetNames(invokedTargets); + NukeBuild.SkippedTargets = GetNames(skippedTargets); + NukeBuild.ExecutingTargets = GetNames(executingTargets.Except(skippedTargets)); return executingTargets; } diff --git a/source/Nuke.Common/NukeBuild.Statics.cs b/source/Nuke.Common/NukeBuild.Statics.cs index 8353d496e..69b49ac5c 100644 --- a/source/Nuke.Common/NukeBuild.Statics.cs +++ b/source/Nuke.Common/NukeBuild.Statics.cs @@ -93,18 +93,18 @@ static NukeBuild() /// Gets the list of targets that were invoked. /// [Parameter("List of targets to be executed. Default is '{default_target}'.", Name = InvokedTargetsParameterName, Separator = TargetsSeparator)] - public static string[] InvokedTargets { get; } + public static string[] InvokedTargets { get; internal set; } /// /// Gets the list of targets that are skipped. /// [Parameter("List of targets to be skipped. Empty list skips all dependencies.", Name = SkippedTargetsParameterName, Separator = TargetsSeparator)] - public static string[] SkippedTargets { get; } + public static string[] SkippedTargets { get; internal set; } /// /// Gets the list of targets that are executing. /// - public static string[] ExecutingTargets { get; } + public static string[] ExecutingTargets { get; internal set; } private static PathConstruction.AbsolutePath GetRootDirectory() { From a0ce75745c6a425693c3cbf91e36027b1c188185 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 21:00:13 +0100 Subject: [PATCH 17/21] Sort generated properties by relevance --- source/Nuke.CodeGeneration/CodeGenerator.cs | 6 +- .../Tools/DotCover/DotCover.Generated.cs | 88 +++++++++---------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/source/Nuke.CodeGeneration/CodeGenerator.cs b/source/Nuke.CodeGeneration/CodeGenerator.cs index c03aa9449..2cd56d519 100644 --- a/source/Nuke.CodeGeneration/CodeGenerator.cs +++ b/source/Nuke.CodeGeneration/CodeGenerator.cs @@ -83,15 +83,15 @@ private static void ApplyRuntimeInformation( task.SettingsClass.Tool = tool; task.SettingsClass.Task = task; - if (!task.OmitCommonProperties) - tool.CommonTaskProperties.ForEach(x => task.SettingsClass.Properties.Add(x.Clone())); - foreach (var commonPropertySet in task.CommonPropertySets) { ControlFlow.Assert(tool.CommonTaskPropertySets.TryGetValue(commonPropertySet, out var properties), $"commonPropertySets[{commonPropertySet}] != null"); properties.ForEach(x => task.SettingsClass.Properties.Add(x.Clone())); } + + if (!task.OmitCommonProperties) + tool.CommonTaskProperties.ForEach(x => task.SettingsClass.Properties.Add(x.Clone())); foreach (var property in task.SettingsClass.Properties) { diff --git a/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs b/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs index c079427ab..229cffdee 100644 --- a/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs +++ b/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs @@ -99,8 +99,6 @@ public partial class DotCoverAnalyseSettings : ToolSettings public virtual string OutputFile { get; internal set; } ///

Remove auto-implemented properties from report.

public virtual bool? HideAutoProperties { get; internal set; } - ///

Enables logging and specifies log file name.

- public virtual string LogFile { get; internal set; } ///

File name of the program to analyse.

public virtual string TargetExecutable { get; internal set; } ///

Program arguments.

@@ -134,6 +132,8 @@ public partial class DotCoverAnalyseSettings : ToolSettings ///

Specifies process filters. Syntax: +:process1;-:process2.

public virtual IReadOnlyList ProcessFilters => ProcessFiltersInternal.AsReadOnly(); internal List ProcessFiltersInternal { get; set; } = new List(); + ///

Enables logging and specifies log file name.

+ public virtual string LogFile { get; internal set; } protected override void AssertValid() { base.AssertValid(); @@ -147,7 +147,6 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("/ReportType={value}", ReportType) .Add("/Output={value}", OutputFile) .Add("/HideAutoProperties", HideAutoProperties) - .Add("/LogFile={value}", LogFile) .Add("/TargetExecutable={value}", TargetExecutable) .Add("/TargetArguments={value}", TargetArguments) .Add("/TargetWorkingDir={value}", TargetWorkingDirectory) @@ -161,7 +160,8 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("/SymbolSearchPaths={value}", SymbolSearchPaths, separator: ';') .Add("/AllowSymbolServerAccess", AllowSymbolServerAccess) .Add("/ReturnTargetExitCode", ReturnTargetExitCode) - .Add("/ProcessFilters={value}", ProcessFilters, separator: ';'); + .Add("/ProcessFilters={value}", ProcessFilters, separator: ';') + .Add("/LogFile={value}", LogFile); return base.ConfigureArguments(arguments); } } @@ -178,8 +178,6 @@ public partial class DotCoverCoverSettings : ToolSettings public virtual string Configuration { get; internal set; } ///

Path to the resulting coverage snapshot.

public virtual string OutputFile { get; internal set; } - ///

Enables logging and specifies log file name.

- public virtual string LogFile { get; internal set; } ///

File name of the program to analyse.

public virtual string TargetExecutable { get; internal set; } ///

Program arguments.

@@ -213,6 +211,8 @@ public partial class DotCoverCoverSettings : ToolSettings ///

Specifies process filters. Syntax: +:process1;-:process2.

public virtual IReadOnlyList ProcessFilters => ProcessFiltersInternal.AsReadOnly(); internal List ProcessFiltersInternal { get; set; } = new List(); + ///

Enables logging and specifies log file name.

+ public virtual string LogFile { get; internal set; } protected override void AssertValid() { base.AssertValid(); @@ -224,7 +224,6 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("cover") .Add("{value}", Configuration) .Add("/Output={value}", OutputFile) - .Add("/LogFile={value}", LogFile) .Add("/TargetExecutable={value}", TargetExecutable) .Add("/TargetArguments={value}", TargetArguments) .Add("/TargetWorkingDir={value}", TargetWorkingDirectory) @@ -238,7 +237,8 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("/SymbolSearchPaths={value}", SymbolSearchPaths, separator: ';') .Add("/AllowSymbolServerAccess", AllowSymbolServerAccess) .Add("/ReturnTargetExitCode", ReturnTargetExitCode) - .Add("/ProcessFilters={value}", ProcessFilters, separator: ';'); + .Add("/ProcessFilters={value}", ProcessFilters, separator: ';') + .Add("/LogFile={value}", LogFile); return base.ConfigureArguments(arguments); } } @@ -486,24 +486,6 @@ public static DotCoverAnalyseSettings ToggleHideAutoProperties(this DotCoverAnal return toolSettings; } #endregion - #region LogFile - ///

Sets .

Enables logging and specifies log file name.

- [Pure] - public static DotCoverAnalyseSettings SetLogFile(this DotCoverAnalyseSettings toolSettings, string logFile) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.LogFile = logFile; - return toolSettings; - } - ///

Resets .

Enables logging and specifies log file name.

- [Pure] - public static DotCoverAnalyseSettings ResetLogFile(this DotCoverAnalyseSettings toolSettings) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.LogFile = null; - return toolSettings; - } - #endregion #region TargetExecutable ///

Sets .

File name of the program to analyse.

[Pure] @@ -1086,6 +1068,24 @@ public static DotCoverAnalyseSettings RemoveProcessFilters(this DotCoverAnalyseS return toolSettings; } #endregion + #region LogFile + ///

Sets .

Enables logging and specifies log file name.

+ [Pure] + public static DotCoverAnalyseSettings SetLogFile(this DotCoverAnalyseSettings toolSettings, string logFile) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LogFile = logFile; + return toolSettings; + } + ///

Resets .

Enables logging and specifies log file name.

+ [Pure] + public static DotCoverAnalyseSettings ResetLogFile(this DotCoverAnalyseSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LogFile = null; + return toolSettings; + } + #endregion } #endregion #region DotCoverCoverSettingsExtensions @@ -1130,24 +1130,6 @@ public static DotCoverCoverSettings ResetOutputFile(this DotCoverCoverSettings t return toolSettings; } #endregion - #region LogFile - ///

Sets .

Enables logging and specifies log file name.

- [Pure] - public static DotCoverCoverSettings SetLogFile(this DotCoverCoverSettings toolSettings, string logFile) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.LogFile = logFile; - return toolSettings; - } - ///

Resets .

Enables logging and specifies log file name.

- [Pure] - public static DotCoverCoverSettings ResetLogFile(this DotCoverCoverSettings toolSettings) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.LogFile = null; - return toolSettings; - } - #endregion #region TargetExecutable ///

Sets .

File name of the program to analyse.

[Pure] @@ -1730,6 +1712,24 @@ public static DotCoverCoverSettings RemoveProcessFilters(this DotCoverCoverSetti return toolSettings; } #endregion + #region LogFile + ///

Sets .

Enables logging and specifies log file name.

+ [Pure] + public static DotCoverCoverSettings SetLogFile(this DotCoverCoverSettings toolSettings, string logFile) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LogFile = logFile; + return toolSettings; + } + ///

Resets .

Enables logging and specifies log file name.

+ [Pure] + public static DotCoverCoverSettings ResetLogFile(this DotCoverCoverSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LogFile = null; + return toolSettings; + } + #endregion } #endregion #region DotCoverDeleteSettingsExtensions From cfef767cc81b58278386affe8e500987c2f4a776 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 21:17:59 +0100 Subject: [PATCH 18/21] Remove whitespace in informational text --- source/Nuke.Common/Utilities/AssemblyExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Nuke.Common/Utilities/AssemblyExtensions.cs b/source/Nuke.Common/Utilities/AssemblyExtensions.cs index 89c6efdb5..62e629765 100644 --- a/source/Nuke.Common/Utilities/AssemblyExtensions.cs +++ b/source/Nuke.Common/Utilities/AssemblyExtensions.cs @@ -12,7 +12,7 @@ public static class AssemblyExtensions { public static string GetInformationalText(this Assembly assembly) { - return $"version {assembly.GetVersionText()} ({EnvironmentInfo.Platform}, {EnvironmentInfo.Framework})"; + return $"version {assembly.GetVersionText()} ({EnvironmentInfo.Platform},{EnvironmentInfo.Framework})"; } public static string GetVersionText(this Assembly assembly) From c31ef64bd89bc5069c8b2564d0da196c44d6b211 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 21:25:03 +0100 Subject: [PATCH 19/21] Add Properties property in DotNetCleanSettings and DotNetRestoreSettings --- build/specifications/DotNet.json | 278 +- .../CoverallsNet/CoverallsNet.Generated.cs | 2 +- .../Tools/Coverlet/Coverlet.Generated.cs | 2 +- .../Tools/DotCover/DotCover.Generated.cs | 2 +- .../DotMemoryUnit/DotMemoryUnit.Generated.cs | 2 +- .../Tools/DotNet/DotNet.Generated.cs | 6328 ++++++++++++----- .../Tools/DupFinder/DupFinder.Generated.cs | 2 +- source/Nuke.Common/Tools/Git/Git.Generated.cs | 2 +- .../Tools/GitLink/GitLink.Generated.cs | 2 +- .../GitReleaseManager.Generated.cs | 2 +- .../Tools/GitVersion/GitVersion.Generated.cs | 2 +- .../InspectCode/InspectCode.Generated.cs | 2 +- .../Tools/MSBuild/MSBuild.Generated.cs | 2 +- .../Tools/MSpec/MSpec.Generated.cs | 2 +- source/Nuke.Common/Tools/Npm/Npm.Generated.cs | 2 +- .../Tools/NuGet/NuGet.Generated.cs | 2 +- .../Tools/NuGet/NuGetPackage.Generated.cs | 2 +- .../Tools/Nunit/Nunit3.Generated.cs | 2 +- .../Tools/Octopus/Octopus.Generated.cs | 2 +- .../Tools/OpenCover/OpenCover.Generated.cs | 2 +- .../Tools/Paket/Paket.Generated.cs | 2 +- .../ReportGenerator.Generated.cs | 2 +- .../Tools/SignTool/SignTool.Generated.cs | 2 +- .../Tools/Slack/Slack.Generated.cs | 2 +- .../Tools/SpecFlow/SpecFlow.Generated.cs | 2 +- .../Tools/Squirrel/Squirrel.Generated.cs | 2 +- .../Tools/TestCloud/TestCloud.Generated.cs | 2 +- .../Tools/Unity/Unity.Generated.cs | 2 +- .../Tools/VSTest/VSTest.Generated.cs | 2 +- .../Tools/VSWhere/VSWhere.Generated.cs | 2 +- .../WebConfigTransformRunner.Generated.cs | 2 +- .../Tools/Xunit/Xunit.Generated.cs | 2 +- 32 files changed, 4748 insertions(+), 1918 deletions(-) diff --git a/build/specifications/DotNet.json b/build/specifications/DotNet.json index 462e3cdcb..015a67c46 100644 --- a/build/specifications/DotNet.json +++ b/build/specifications/DotNet.json @@ -20,8 +20,7 @@ "postfix": "Test", "commonPropertySets": [ "restore", - "restore-runtime", - "build" + "restore-runtime" ], "definiteArgument": "test", "settingsClass": { @@ -124,8 +123,7 @@ "postfix": "Run", "commonPropertySets": [ "restore", - "restore-runtime", - "build" + "restore-runtime" ], "definiteArgument": "run", "settingsClass": { @@ -219,8 +217,7 @@ "postfix": "Pack", "commonPropertySets": [ "restore", - "restore-runtime", - "build-pack" + "restore-runtime" ], "definiteArgument": "pack", "settingsClass": { @@ -293,8 +290,7 @@ "help": "

The dotnet build command builds the project and its dependencies into a set of binaries. The binaries include the project's code in Intermediate Language (IL) files with a .dll extension and symbol files used for debugging with a .pdb extension. A dependencies JSON file (*.deps.json) is produced that lists the dependencies of the application. A .runtimeconfig.json file is produced, which specifies the shared runtime and its version for the application.

If the project has third-party dependencies, such as libraries from NuGet, they're resolved from the NuGet cache and aren't available with the project's built output. With that in mind, the product of dotnet buildd isn't ready to be transferred to another machine to run. This is in contrast to the behavior of the .NET Framework in which building an executable project (an application) produces output that's runnable on any machine where the .NET Framework is installed. To have a similar experience with .NET Core, you use the dotnet publish command. For more information, see .NET Core Application Deployment.

Building requires the project.assets.json file, which lists the dependencies of your application. The file is created dotnet restore is executed. Without the assets file in place, the tooling cannot resolve reference assemblies, which will result in errors. With .NET Core 1.x SDK, you needed to explicitily run the dotnet restore before running dotnet build. Starting with .NET Core 2.0 SDK, dotnet restore runs implicitily when you run dotnet build. If you want to disable implicit restore when running the build command, you can pass the --no-restore option.

dotnet build uses MSBuild to build the project; thus, it supports both parallel and incremental builds. Refer to Incremental Builds for more information.

In addition to its options, the dotnet build command accepts MSBuild options, such as /p for setting properties or /l to define a logger. Learn more about these options in the MSBuild Command-Line Reference.

", "postfix": "Build", "commonPropertySets": [ - "restore", - "build" + "restore" ], "definiteArgument": "build", "settingsClass": { @@ -407,8 +403,7 @@ "help": "dotnet publish compiles the application, reads through its dependencies specified in the project file, and publishes the resulting set of files to a directory. The output will contain the following:
  • Intermediate Language (IL) code in an assembly with a dll extension.
  • .deps.json file that contains all of the dependencies of the project.
  • .runtime.config.json file that specifies the shared runtime that the application expects, as well as other configuration options for the runtime (for example, garbage collection type).
  • The application's dependencies. These are copied from the NuGet cache into the output folder.
The dotnet publish command's output is ready for deployment to a hosting system (for example, a server, PC, Mac, laptop) for execution and is the only officially supported way to prepare the application for deployment. Depending on the type of deployment that the project specifies, the hosting system may or may not have the .NET Core shared runtime installed on it. For more information, see .NET Core Application Deployment. For the directory structure of a published application, see Directory structure.", "postfix": "Publish", "commonPropertySets": [ - "restore", - "build" + "restore" ], "definiteArgument": "publish", "settingsClass": { @@ -485,6 +480,7 @@ { "help": "Pushes a package to the server and publishes it.", "postfix": "NuGetPush", + "omitCommonProperties": true, "definiteArgument": "nuget push", "settingsClass": { "properties": [ @@ -549,6 +545,114 @@ } } ], + "commonTaskProperties": [ + { + "name": "Properties", + "type": "Dictionary", + "format": "/property:{value}", + "itemFormat": "{key}={value}", + "disallowedCharacter": ";", + "help": "

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\\Debug

", + "delegates": [ + { + "name": "RunCodeAnalysis", + "type": "bool" + }, + { + "name": "NoWarn", + "type": "List", + "separator": ";" + }, + { + "name": "WarningsAsErrors", + "type": "List", + "separator": ";" + }, + { + "name": "WarningLevel", + "type": "int" + }, + { + "name": "TreatWarningsAsErrors", + "type": "bool" + }, + { + "name": "AssemblyVersion", + "type": "string" + }, + { + "name": "FileVersion", + "type": "string" + }, + { + "name": "InformationalVersion", + "type": "string" + }, + { + "name": "PackageId", + "type": "string" + }, + { + "name": "Version", + "type": "string" + }, + { + "name": "VersionPrefix", + "type": "string" + }, + { + "name": "Authors", + "type": "List", + "separator": "," + }, + { + "name": "Title", + "type": "string" + }, + { + "name": "Description", + "type": "string" + }, + { + "name": "Copyright", + "type": "string" + }, + { + "name": "PackageRequireLicenseAcceptance", + "type": "bool" + }, + { + "name": "PackageLicenseUrl", + "type": "string" + }, + { + "name": "PackageProjectUrl", + "type": "string" + }, + { + "name": "PackageIconUrl", + "type": "string" + }, + { + "name": "PackageTags", + "type": "List", + "separator": " " + }, + { + "name": "PackageReleaseNotes", + "type": "string" + }, + { + "name": "RepositoryUrl", + "type": "string" + }, + { + "name": "RepositoryType", + "type": "string" + } + ] + } + ], "commonTaskPropertySets": { "restore": [ { @@ -625,160 +729,6 @@ "format": "--runtime {value}", "help": "Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times." } - ], - "build": [ - { - "name": "Properties", - "type": "Dictionary", - "format": "/property:{value}", - "itemFormat": "{key}={value}", - "disallowedCharacter": ";", - "help": "

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\\Debug

", - "delegates": [ - { - "name": "RunCodeAnalysis", - "type": "bool" - }, - { - "name": "NoWarn", - "type": "List", - "separator": ";" - }, - { - "name": "WarningsAsErrors", - "type": "List", - "separator": ";" - }, - { - "name": "WarningLevel", - "type": "int" - }, - { - "name": "TreatWarningsAsErrors", - "type": "bool" - }, - { - "name": "AssemblyVersion", - "type": "string" - }, - { - "name": "FileVersion", - "type": "string" - }, - { - "name": "InformationalVersion", - "type": "string" - } - ] - } - ], - "build-pack": [ - { - "name": "Properties", - "type": "Dictionary", - "format": "/property:{value}", - "itemFormat": "{key}={value}", - "disallowedCharacter": ";", - "help": "

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\\Debug

", - "delegates": [ - { - "name": "RunCodeAnalysis", - "type": "bool" - }, - { - "name": "NoWarn", - "type": "List", - "separator": ";" - }, - { - "name": "WarningsAsErrors", - "type": "List", - "separator": ";" - }, - { - "name": "WarningLevel", - "type": "int" - }, - { - "name": "TreatWarningsAsErrors", - "type": "bool" - }, - { - "name": "AssemblyVersion", - "type": "string" - }, - { - "name": "FileVersion", - "type": "string" - }, - { - "name": "InformationalVersion", - "type": "string" - }, - { - "name": "PackageId", - "type": "string" - }, - { - "name": "Version", - "type": "string" - }, - { - "name": "VersionPrefix", - "type": "string" - }, - { - "name": "Authors", - "type": "List", - "separator": "," - }, - { - "name": "Title", - "type": "string" - }, - { - "name": "Description", - "type": "string" - }, - { - "name": "Copyright", - "type": "string" - }, - { - "name": "PackageRequireLicenseAcceptance", - "type": "bool" - }, - { - "name": "PackageLicenseUrl", - "type": "string" - }, - { - "name": "PackageProjectUrl", - "type": "string" - }, - { - "name": "PackageIconUrl", - "type": "string" - }, - { - "name": "PackageTags", - "type": "List", - "separator": " " - }, - { - "name": "PackageReleaseNotes", - "type": "string" - }, - { - "name": "RepositoryUrl", - "type": "string" - }, - { - "name": "RepositoryType", - "type": "string" - } - ] - } ] }, "enumerations": [ diff --git a/source/Nuke.Common/Tools/CoverallsNet/CoverallsNet.Generated.cs b/source/Nuke.Common/Tools/CoverallsNet/CoverallsNet.Generated.cs index de3619422..78e403cbe 100644 --- a/source/Nuke.Common/Tools/CoverallsNet/CoverallsNet.Generated.cs +++ b/source/Nuke.Common/Tools/CoverallsNet/CoverallsNet.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/CoverallsNet.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Coverlet/Coverlet.Generated.cs b/source/Nuke.Common/Tools/Coverlet/Coverlet.Generated.cs index a7e8a0303..ca3635830 100644 --- a/source/Nuke.Common/Tools/Coverlet/Coverlet.Generated.cs +++ b/source/Nuke.Common/Tools/Coverlet/Coverlet.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Coverlet.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs b/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs index 229cffdee..5bd915c6d 100644 --- a/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs +++ b/source/Nuke.Common/Tools/DotCover/DotCover.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/DotCover.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs b/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs index 58a2701c8..f5bd03cef 100644 --- a/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs +++ b/source/Nuke.Common/Tools/DotMemoryUnit/DotMemoryUnit.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/DotMemoryUnit.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs b/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs index d993f3fdc..286469692 100644 --- a/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs +++ b/source/Nuke.Common/Tools/DotNet/DotNet.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/DotNet.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; @@ -350,6 +350,9 @@ public partial class DotNetRestoreSettings : ToolSettings public virtual bool? ForceEvaluate { get; internal set; } ///

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

public virtual string Runtime { get; internal set; } + ///

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ public virtual IReadOnlyDictionary Properties => PropertiesInternal.AsReadOnly(); + internal Dictionary PropertiesInternal { get; set; } = new Dictionary(StringComparer.OrdinalIgnoreCase); protected override Arguments ConfigureArguments(Arguments arguments) { arguments @@ -368,7 +371,8 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("--locked-mode", LockedMode) .Add("--lock-file-path {value}", LockFilePath) .Add("--force-evaluate", ForceEvaluate) - .Add("--runtime {value}", Runtime); + .Add("--runtime {value}", Runtime) + .Add("/property:{value}", Properties, "{key}={value}", disallowed: ';'); return base.ConfigureArguments(arguments); } } @@ -567,6 +571,9 @@ public partial class DotNetCleanSettings : ToolSettings public virtual string Runtime { get; internal set; } ///

Sets the verbosity level of the command. Allowed levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

public virtual DotNetVerbosity Verbosity { get; internal set; } + ///

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ public virtual IReadOnlyDictionary Properties => PropertiesInternal.AsReadOnly(); + internal Dictionary PropertiesInternal { get; set; } = new Dictionary(StringComparer.OrdinalIgnoreCase); protected override Arguments ConfigureArguments(Arguments arguments) { arguments @@ -576,7 +583,8 @@ protected override Arguments ConfigureArguments(Arguments arguments) .Add("--framework {value}", Framework) .Add("--output {value}", Output) .Add("--runtime {value}", Runtime) - .Add("--verbosity {value}", Verbosity); + .Add("--verbosity {value}", Verbosity) + .Add("/property:{value}", Properties, "{key}={value}", disallowed: ';'); return base.ConfigureArguments(arguments); } } @@ -1831,1851 +1839,1841 @@ public static DotNetTestSettings ResetInformationalVersion(this DotNetTestSettin return toolSettings; } #endregion - #endregion - } - #endregion - #region DotNetRunSettingsExtensions - ///

Used within .

- [PublicAPI] - [ExcludeFromCodeCoverage] - public static partial class DotNetRunSettingsExtensions - { - #region Configuration - ///

Sets .

Configuration to use for building the project. The default value is Debug.

+ #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetConfiguration(this DotNetRunSettings toolSettings, string configuration) + public static DotNetTestSettings SetPackageId(this DotNetTestSettings toolSettings, string packageId) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = configuration; + toolSettings.PropertiesInternal["PackageId"] = packageId; return toolSettings; } - ///

Resets .

Configuration to use for building the project. The default value is Debug.

+ ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetConfiguration(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetPackageId(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = null; + toolSettings.PropertiesInternal.Remove("PackageId"); return toolSettings; } #endregion - #region Framework - ///

Sets .

Builds and runs the app using the specified framework. The framework must be specified in the project file.

+ #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetFramework(this DotNetRunSettings toolSettings, string framework) + public static DotNetTestSettings SetVersion(this DotNetTestSettings toolSettings, string version) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = framework; + toolSettings.PropertiesInternal["Version"] = version; return toolSettings; } - ///

Resets .

Builds and runs the app using the specified framework. The framework must be specified in the project file.

+ ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetFramework(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetVersion(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = null; + toolSettings.PropertiesInternal.Remove("Version"); return toolSettings; } #endregion - #region LaunchProfile - ///

Sets .

The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the launchSettings.json file and are typically called Development, Staging and Production. For more information, see Working with multiple environments.

+ #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetLaunchProfile(this DotNetRunSettings toolSettings, string launchProfile) + public static DotNetTestSettings SetVersionPrefix(this DotNetTestSettings toolSettings, string versionPrefix) { toolSettings = toolSettings.NewInstance(); - toolSettings.LaunchProfile = launchProfile; + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; return toolSettings; } - ///

Resets .

The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the launchSettings.json file and are typically called Development, Staging and Production. For more information, see Working with multiple environments.

+ ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetLaunchProfile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetVersionPrefix(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LaunchProfile = null; + toolSettings.PropertiesInternal.Remove("VersionPrefix"); return toolSettings; } #endregion - #region NoBuild - ///

Sets .

Doesn't build the project before running.

+ #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetNoBuild(this DotNetRunSettings toolSettings, bool? noBuild) + public static DotNetTestSettings SetAuthors(this DotNetTestSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = noBuild; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Resets .

Doesn't build the project before running.

+ ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetNoBuild(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetAuthors(this DotNetTestSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Enables .

Doesn't build the project before running.

+ ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableNoBuild(this DotNetRunSettings toolSettings) + public static DotNetTestSettings AddAuthors(this DotNetTestSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = true; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Disables .

Doesn't build the project before running.

+ ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableNoBuild(this DotNetRunSettings toolSettings) + public static DotNetTestSettings AddAuthors(this DotNetTestSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = false; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Toggles .

Doesn't build the project before running.

+ ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleNoBuild(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ClearAuthors(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = !toolSettings.NoBuild; + toolSettings.PropertiesInternal.Remove("Authors"); return toolSettings; } - #endregion - #region NoLaunchProfile - ///

Sets .

Doesn't attempt to use launchSettings.json to configure the application.

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetNoLaunchProfile(this DotNetRunSettings toolSettings, bool? noLaunchProfile) + public static DotNetTestSettings RemoveAuthors(this DotNetTestSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoLaunchProfile = noLaunchProfile; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Resets .

Doesn't attempt to use launchSettings.json to configure the application.

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetNoLaunchProfile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings RemoveAuthors(this DotNetTestSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoLaunchProfile = null; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Enables .

Doesn't attempt to use launchSettings.json to configure the application.

+ #endregion + #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableNoLaunchProfile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetTitle(this DotNetTestSettings toolSettings, string title) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoLaunchProfile = true; + toolSettings.PropertiesInternal["Title"] = title; return toolSettings; } - ///

Disables .

Doesn't attempt to use launchSettings.json to configure the application.

+ ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableNoLaunchProfile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetTitle(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoLaunchProfile = false; + toolSettings.PropertiesInternal.Remove("Title"); return toolSettings; } - ///

Toggles .

Doesn't attempt to use launchSettings.json to configure the application.

+ #endregion + #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleNoLaunchProfile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetDescription(this DotNetTestSettings toolSettings, string description) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoLaunchProfile = !toolSettings.NoLaunchProfile; + toolSettings.PropertiesInternal["Description"] = description; return toolSettings; } - #endregion - #region NoRestore - ///

Sets .

Doesn't perform an implicit restore when running the command.

+ ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetNoRestore(this DotNetRunSettings toolSettings, bool? noRestore) + public static DotNetTestSettings ResetDescription(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = noRestore; + toolSettings.PropertiesInternal.Remove("Description"); return toolSettings; } - ///

Resets .

Doesn't perform an implicit restore when running the command.

+ #endregion + #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetNoRestore(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetCopyright(this DotNetTestSettings toolSettings, string copyright) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = null; + toolSettings.PropertiesInternal["Copyright"] = copyright; return toolSettings; } - ///

Enables .

Doesn't perform an implicit restore when running the command.

+ ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableNoRestore(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetCopyright(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = true; + toolSettings.PropertiesInternal.Remove("Copyright"); return toolSettings; } - ///

Disables .

Doesn't perform an implicit restore when running the command.

+ #endregion + #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableNoRestore(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageRequireLicenseAcceptance(this DotNetTestSettings toolSettings, bool? packageRequireLicenseAcceptance) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = false; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; return toolSettings; } - ///

Toggles .

Doesn't perform an implicit restore when running the command.

+ ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleNoRestore(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetPackageRequireLicenseAcceptance(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = !toolSettings.NoRestore; + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); return toolSettings; } - #endregion - #region ProjectFile - ///

Sets .

Specifies the path and name of the project file. (See the NOTE.) It defaults to the current directory if not specified.

+ ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetProjectFile(this DotNetRunSettings toolSettings, string projectFile) + public static DotNetTestSettings EnablePackageRequireLicenseAcceptance(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = projectFile; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; return toolSettings; } - ///

Resets .

Specifies the path and name of the project file. (See the NOTE.) It defaults to the current directory if not specified.

+ ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetProjectFile(this DotNetRunSettings toolSettings) + public static DotNetTestSettings DisablePackageRequireLicenseAcceptance(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = null; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; return toolSettings; } - #endregion - #region ApplicationArguments - ///

Sets .

Arguments passed to the application being run.

+ ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetApplicationArguments(this DotNetRunSettings toolSettings, string applicationArguments) + public static DotNetTestSettings TogglePackageRequireLicenseAcceptance(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ApplicationArguments = applicationArguments; + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); return toolSettings; } - ///

Resets .

Arguments passed to the application being run.

+ #endregion + #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetApplicationArguments(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageLicenseUrl(this DotNetTestSettings toolSettings, string packageLicenseUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.ApplicationArguments = null; + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; return toolSettings; } - #endregion - #region DisableParallel - ///

Sets .

Disables restoring multiple projects in parallel.

+ ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetDisableParallel(this DotNetRunSettings toolSettings, bool? disableParallel) + public static DotNetTestSettings ResetPackageLicenseUrl(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = disableParallel; + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); return toolSettings; } - ///

Resets .

Disables restoring multiple projects in parallel.

+ #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetDisableParallel(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageProjectUrl(this DotNetTestSettings toolSettings, string packageProjectUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = null; + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; return toolSettings; } - ///

Enables .

Disables restoring multiple projects in parallel.

+ ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableDisableParallel(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetPackageProjectUrl(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = true; + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); return toolSettings; } - ///

Disables .

Disables restoring multiple projects in parallel.

+ #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableDisableParallel(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageIconUrl(this DotNetTestSettings toolSettings, string packageIconUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = false; + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; return toolSettings; } - ///

Toggles .

Disables restoring multiple projects in parallel.

+ ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleDisableParallel(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetPackageIconUrl(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = !toolSettings.DisableParallel; + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); return toolSettings; } #endregion - #region Force - ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetForce(this DotNetRunSettings toolSettings, bool? force) + public static DotNetTestSettings SetPackageTags(this DotNetTestSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = force; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetForce(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageTags(this DotNetTestSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableForce(this DotNetRunSettings toolSettings) + public static DotNetTestSettings AddPackageTags(this DotNetTestSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = true; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableForce(this DotNetRunSettings toolSettings) + public static DotNetTestSettings AddPackageTags(this DotNetTestSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = false; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleForce(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ClearPackageTags(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = !toolSettings.Force; + toolSettings.PropertiesInternal.Remove("PackageTags"); return toolSettings; } - #endregion - #region IgnoreFailedSources - ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetIgnoreFailedSources(this DotNetRunSettings toolSettings, bool? ignoreFailedSources) + public static DotNetTestSettings RemovePackageTags(this DotNetTestSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = ignoreFailedSources; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetIgnoreFailedSources(this DotNetRunSettings toolSettings) + public static DotNetTestSettings RemovePackageTags(this DotNetTestSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = null; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ #endregion + #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableIgnoreFailedSources(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetPackageReleaseNotes(this DotNetTestSettings toolSettings, string packageReleaseNotes) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = true; + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; return toolSettings; } - ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings DisableIgnoreFailedSources(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetPackageReleaseNotes(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = false; + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); return toolSettings; } - ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ #endregion + #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ToggleIgnoreFailedSources(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetRepositoryUrl(this DotNetTestSettings toolSettings, string repositoryUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; return toolSettings; } - #endregion - #region NoCache - ///

Sets .

Specifies to not cache packages and HTTP requests.

+ ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings SetNoCache(this DotNetRunSettings toolSettings, bool? noCache) + public static DotNetTestSettings ResetRepositoryUrl(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = noCache; + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); return toolSettings; } - ///

Resets .

Specifies to not cache packages and HTTP requests.

+ #endregion + #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings ResetNoCache(this DotNetRunSettings toolSettings) + public static DotNetTestSettings SetRepositoryType(this DotNetTestSettings toolSettings, string repositoryType) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = null; + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; return toolSettings; } - ///

Enables .

Specifies to not cache packages and HTTP requests.

+ ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRunSettings EnableNoCache(this DotNetRunSettings toolSettings) + public static DotNetTestSettings ResetRepositoryType(this DotNetTestSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = true; + toolSettings.PropertiesInternal.Remove("RepositoryType"); return toolSettings; } - ///

Disables .

Specifies to not cache packages and HTTP requests.

+ #endregion + #endregion + } + #endregion + #region DotNetRunSettingsExtensions + ///

Used within .

+ [PublicAPI] + [ExcludeFromCodeCoverage] + public static partial class DotNetRunSettingsExtensions + { + #region Configuration + ///

Sets .

Configuration to use for building the project. The default value is Debug.

[Pure] - public static DotNetRunSettings DisableNoCache(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetConfiguration(this DotNetRunSettings toolSettings, string configuration) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = false; + toolSettings.Configuration = configuration; return toolSettings; } - ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ ///

Resets .

Configuration to use for building the project. The default value is Debug.

[Pure] - public static DotNetRunSettings ToggleNoCache(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetConfiguration(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = !toolSettings.NoCache; + toolSettings.Configuration = null; return toolSettings; } #endregion - #region NoDependencies - ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ #region Framework + ///

Sets .

Builds and runs the app using the specified framework. The framework must be specified in the project file.

[Pure] - public static DotNetRunSettings SetNoDependencies(this DotNetRunSettings toolSettings, bool? noDependencies) + public static DotNetRunSettings SetFramework(this DotNetRunSettings toolSettings, string framework) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = noDependencies; + toolSettings.Framework = framework; return toolSettings; } - ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Resets .

Builds and runs the app using the specified framework. The framework must be specified in the project file.

[Pure] - public static DotNetRunSettings ResetNoDependencies(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetFramework(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = null; + toolSettings.Framework = null; return toolSettings; } - ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ #endregion + #region LaunchProfile + ///

Sets .

The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the launchSettings.json file and are typically called Development, Staging and Production. For more information, see Working with multiple environments.

[Pure] - public static DotNetRunSettings EnableNoDependencies(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetLaunchProfile(this DotNetRunSettings toolSettings, string launchProfile) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = true; + toolSettings.LaunchProfile = launchProfile; return toolSettings; } - ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Resets .

The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the launchSettings.json file and are typically called Development, Staging and Production. For more information, see Working with multiple environments.

[Pure] - public static DotNetRunSettings DisableNoDependencies(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetLaunchProfile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = false; + toolSettings.LaunchProfile = null; return toolSettings; } - ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ #endregion + #region NoBuild + ///

Sets .

Doesn't build the project before running.

[Pure] - public static DotNetRunSettings ToggleNoDependencies(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetNoBuild(this DotNetRunSettings toolSettings, bool? noBuild) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = !toolSettings.NoDependencies; + toolSettings.NoBuild = noBuild; return toolSettings; } - #endregion - #region PackageDirectory - ///

Sets .

Specifies the directory for restored packages.

+ ///

Resets .

Doesn't build the project before running.

[Pure] - public static DotNetRunSettings SetPackageDirectory(this DotNetRunSettings toolSettings, string packageDirectory) + public static DotNetRunSettings ResetNoBuild(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = packageDirectory; + toolSettings.NoBuild = null; return toolSettings; } - ///

Resets .

Specifies the directory for restored packages.

+ ///

Enables .

Doesn't build the project before running.

[Pure] - public static DotNetRunSettings ResetPackageDirectory(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableNoBuild(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = null; + toolSettings.NoBuild = true; return toolSettings; } - #endregion - #region Sources - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Disables .

Doesn't build the project before running.

[Pure] - public static DotNetRunSettings SetSources(this DotNetRunSettings toolSettings, params string[] sources) + public static DotNetRunSettings DisableNoBuild(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + toolSettings.NoBuild = false; return toolSettings; } - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Toggles .

Doesn't build the project before running.

[Pure] - public static DotNetRunSettings SetSources(this DotNetRunSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings ToggleNoBuild(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + toolSettings.NoBuild = !toolSettings.NoBuild; return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ #endregion + #region NoLaunchProfile + ///

Sets .

Doesn't attempt to use launchSettings.json to configure the application.

[Pure] - public static DotNetRunSettings AddSources(this DotNetRunSettings toolSettings, params string[] sources) + public static DotNetRunSettings SetNoLaunchProfile(this DotNetRunSettings toolSettings, bool? noLaunchProfile) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + toolSettings.NoLaunchProfile = noLaunchProfile; return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Resets .

Doesn't attempt to use launchSettings.json to configure the application.

[Pure] - public static DotNetRunSettings AddSources(this DotNetRunSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings ResetNoLaunchProfile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + toolSettings.NoLaunchProfile = null; return toolSettings; } - ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Enables .

Doesn't attempt to use launchSettings.json to configure the application.

[Pure] - public static DotNetRunSettings ClearSources(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableNoLaunchProfile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.Clear(); + toolSettings.NoLaunchProfile = true; return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Disables .

Doesn't attempt to use launchSettings.json to configure the application.

[Pure] - public static DotNetRunSettings RemoveSources(this DotNetRunSettings toolSettings, params string[] sources) + public static DotNetRunSettings DisableNoLaunchProfile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.NoLaunchProfile = false; return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Toggles .

Doesn't attempt to use launchSettings.json to configure the application.

[Pure] - public static DotNetRunSettings RemoveSources(this DotNetRunSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings ToggleNoLaunchProfile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.NoLaunchProfile = !toolSettings.NoLaunchProfile; return toolSettings; } #endregion - #region UseLockFile - ///

Sets .

Enables project lock file to be generated and used with restore.

+ #region NoRestore + ///

Sets .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetRunSettings SetUseLockFile(this DotNetRunSettings toolSettings, bool? useLockFile) + public static DotNetRunSettings SetNoRestore(this DotNetRunSettings toolSettings, bool? noRestore) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = useLockFile; + toolSettings.NoRestore = noRestore; return toolSettings; } - ///

Resets .

Enables project lock file to be generated and used with restore.

+ ///

Resets .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetRunSettings ResetUseLockFile(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetNoRestore(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = null; + toolSettings.NoRestore = null; return toolSettings; } - ///

Enables .

Enables project lock file to be generated and used with restore.

+ ///

Enables .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetRunSettings EnableUseLockFile(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableNoRestore(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = true; + toolSettings.NoRestore = true; return toolSettings; } - ///

Disables .

Enables project lock file to be generated and used with restore.

+ ///

Disables .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetRunSettings DisableUseLockFile(this DotNetRunSettings toolSettings) + public static DotNetRunSettings DisableNoRestore(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = false; + toolSettings.NoRestore = false; return toolSettings; } - ///

Toggles .

Enables project lock file to be generated and used with restore.

+ ///

Toggles .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetRunSettings ToggleUseLockFile(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleNoRestore(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = !toolSettings.UseLockFile; + toolSettings.NoRestore = !toolSettings.NoRestore; return toolSettings; } #endregion - #region LockedMode - ///

Sets .

Don't allow updating project lock file.

+ #region ProjectFile + ///

Sets .

Specifies the path and name of the project file. (See the NOTE.) It defaults to the current directory if not specified.

[Pure] - public static DotNetRunSettings SetLockedMode(this DotNetRunSettings toolSettings, bool? lockedMode) + public static DotNetRunSettings SetProjectFile(this DotNetRunSettings toolSettings, string projectFile) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = lockedMode; + toolSettings.ProjectFile = projectFile; return toolSettings; } - ///

Resets .

Don't allow updating project lock file.

+ ///

Resets .

Specifies the path and name of the project file. (See the NOTE.) It defaults to the current directory if not specified.

[Pure] - public static DotNetRunSettings ResetLockedMode(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetProjectFile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = null; + toolSettings.ProjectFile = null; return toolSettings; } - ///

Enables .

Don't allow updating project lock file.

+ #endregion + #region ApplicationArguments + ///

Sets .

Arguments passed to the application being run.

[Pure] - public static DotNetRunSettings EnableLockedMode(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetApplicationArguments(this DotNetRunSettings toolSettings, string applicationArguments) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = true; + toolSettings.ApplicationArguments = applicationArguments; return toolSettings; } - ///

Disables .

Don't allow updating project lock file.

+ ///

Resets .

Arguments passed to the application being run.

[Pure] - public static DotNetRunSettings DisableLockedMode(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetApplicationArguments(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = false; + toolSettings.ApplicationArguments = null; return toolSettings; } - ///

Toggles .

Don't allow updating project lock file.

+ #endregion + #region DisableParallel + ///

Sets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetRunSettings ToggleLockedMode(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetDisableParallel(this DotNetRunSettings toolSettings, bool? disableParallel) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = !toolSettings.LockedMode; + toolSettings.DisableParallel = disableParallel; return toolSettings; } - #endregion - #region LockFilePath - ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Resets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetRunSettings SetLockFilePath(this DotNetRunSettings toolSettings, string lockFilePath) + public static DotNetRunSettings ResetDisableParallel(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = lockFilePath; + toolSettings.DisableParallel = null; return toolSettings; } - ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Enables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetRunSettings ResetLockFilePath(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableDisableParallel(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = null; + toolSettings.DisableParallel = true; return toolSettings; } - #endregion - #region ForceEvaluate - ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Disables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetRunSettings SetForceEvaluate(this DotNetRunSettings toolSettings, bool? forceEvaluate) + public static DotNetRunSettings DisableDisableParallel(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = forceEvaluate; + toolSettings.DisableParallel = false; return toolSettings; } - ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Toggles .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetRunSettings ResetForceEvaluate(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleDisableParallel(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = null; + toolSettings.DisableParallel = !toolSettings.DisableParallel; return toolSettings; } - ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ #endregion + #region Force + ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetRunSettings EnableForceEvaluate(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetForce(this DotNetRunSettings toolSettings, bool? force) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = true; + toolSettings.Force = force; return toolSettings; } - ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetRunSettings DisableForceEvaluate(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetForce(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = false; + toolSettings.Force = null; return toolSettings; } - ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetRunSettings ToggleForceEvaluate(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableForce(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; + toolSettings.Force = true; return toolSettings; } - #endregion - #region Runtime - ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetRunSettings SetRuntime(this DotNetRunSettings toolSettings, string runtime) + public static DotNetRunSettings DisableForce(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = runtime; + toolSettings.Force = false; return toolSettings; } - ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetRunSettings ResetRuntime(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleForce(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = null; + toolSettings.Force = !toolSettings.Force; return toolSettings; } #endregion - #region Properties - ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region IgnoreFailedSources + ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetRunSettings SetProperties(this DotNetRunSettings toolSettings, IDictionary properties) + public static DotNetRunSettings SetIgnoreFailedSources(this DotNetRunSettings toolSettings, bool? ignoreFailedSources) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); + toolSettings.IgnoreFailedSources = ignoreFailedSources; return toolSettings; } - ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetRunSettings ClearProperties(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetIgnoreFailedSources(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Clear(); + toolSettings.IgnoreFailedSources = null; return toolSettings; } - ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetRunSettings AddProperty(this DotNetRunSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetRunSettings EnableIgnoreFailedSources(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); + toolSettings.IgnoreFailedSources = true; return toolSettings; } - ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetRunSettings RemoveProperty(this DotNetRunSettings toolSettings, string propertyKey) + public static DotNetRunSettings DisableIgnoreFailedSources(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove(propertyKey); + toolSettings.IgnoreFailedSources = false; return toolSettings; } - ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetRunSettings SetProperty(this DotNetRunSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetRunSettings ToggleIgnoreFailedSources(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal[propertyKey] = propertyValue; + toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; return toolSettings; } - #region RunCodeAnalysis - ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region NoCache + ///

Sets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetRunSettings SetRunCodeAnalysis(this DotNetRunSettings toolSettings, bool? runCodeAnalysis) + public static DotNetRunSettings SetNoCache(this DotNetRunSettings toolSettings, bool? noCache) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; + toolSettings.NoCache = noCache; return toolSettings; } - ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetRunSettings ResetRunCodeAnalysis(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetNoCache(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); + toolSettings.NoCache = null; return toolSettings; } - ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetRunSettings EnableRunCodeAnalysis(this DotNetRunSettings toolSettings) + public static DotNetRunSettings EnableNoCache(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; + toolSettings.NoCache = true; return toolSettings; } - ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetRunSettings DisableRunCodeAnalysis(this DotNetRunSettings toolSettings) + public static DotNetRunSettings DisableNoCache(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; + toolSettings.NoCache = false; return toolSettings; } - ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetRunSettings ToggleRunCodeAnalysis(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleNoCache(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); + toolSettings.NoCache = !toolSettings.NoCache; return toolSettings; } #endregion - #region NoWarn - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region NoDependencies + ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetRunSettings SetNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) + public static DotNetRunSettings SetNoDependencies(this DotNetRunSettings toolSettings, bool? noDependencies) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.NoDependencies = noDependencies; return toolSettings; } - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetRunSettings SetNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) + public static DotNetRunSettings ResetNoDependencies(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.NoDependencies = null; return toolSettings; } - ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetRunSettings AddNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) + public static DotNetRunSettings EnableNoDependencies(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.NoDependencies = true; return toolSettings; } - ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetRunSettings AddNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) + public static DotNetRunSettings DisableNoDependencies(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.NoDependencies = false; return toolSettings; } - ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetRunSettings ClearNoWarns(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleNoDependencies(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("NoWarn"); + toolSettings.NoDependencies = !toolSettings.NoDependencies; return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region PackageDirectory + ///

Sets .

Specifies the directory for restored packages.

[Pure] - public static DotNetRunSettings RemoveNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) + public static DotNetRunSettings SetPackageDirectory(this DotNetRunSettings toolSettings, string packageDirectory) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PackageDirectory = packageDirectory; return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Specifies the directory for restored packages.

[Pure] - public static DotNetRunSettings RemoveNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) + public static DotNetRunSettings ResetPackageDirectory(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PackageDirectory = null; return toolSettings; } #endregion - #region WarningsAsErrors - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region Sources + ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings SetWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRunSettings SetSources(this DotNetRunSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings SetWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRunSettings SetSources(this DotNetRunSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings AddWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRunSettings AddSources(this DotNetRunSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings AddWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRunSettings AddSources(this DotNetRunSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings ClearWarningsAsErrors(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ClearSources(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); + toolSettings.SourcesInternal.Clear(); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings RemoveWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRunSettings RemoveSources(this DotNetRunSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetRunSettings RemoveWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRunSettings RemoveSources(this DotNetRunSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } #endregion - #region WarningLevel - ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region UseLockFile + ///

Sets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetRunSettings SetWarningLevel(this DotNetRunSettings toolSettings, int? warningLevel) + public static DotNetRunSettings SetUseLockFile(this DotNetRunSettings toolSettings, bool? useLockFile) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; + toolSettings.UseLockFile = useLockFile; return toolSettings; } - ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetRunSettings ResetWarningLevel(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetUseLockFile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("WarningLevel"); + toolSettings.UseLockFile = null; return toolSettings; } - #endregion - #region TreatWarningsAsErrors - ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetRunSettings SetTreatWarningsAsErrors(this DotNetRunSettings toolSettings, bool? treatWarningsAsErrors) + public static DotNetRunSettings EnableUseLockFile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; + toolSettings.UseLockFile = true; return toolSettings; } - ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetRunSettings ResetTreatWarningsAsErrors(this DotNetRunSettings toolSettings) + public static DotNetRunSettings DisableUseLockFile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); + toolSettings.UseLockFile = false; return toolSettings; } - ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetRunSettings EnableTreatWarningsAsErrors(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ToggleUseLockFile(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; + toolSettings.UseLockFile = !toolSettings.UseLockFile; return toolSettings; } - ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region LockedMode + ///

Sets .

Don't allow updating project lock file.

[Pure] - public static DotNetRunSettings DisableTreatWarningsAsErrors(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetLockedMode(this DotNetRunSettings toolSettings, bool? lockedMode) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; + toolSettings.LockedMode = lockedMode; return toolSettings; } - ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Don't allow updating project lock file.

[Pure] - public static DotNetRunSettings ToggleTreatWarningsAsErrors(this DotNetRunSettings toolSettings) + public static DotNetRunSettings ResetLockedMode(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); + toolSettings.LockedMode = null; return toolSettings; } - #endregion - #region AssemblyVersion - ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables .

Don't allow updating project lock file.

[Pure] - public static DotNetRunSettings SetAssemblyVersion(this DotNetRunSettings toolSettings, string assemblyVersion) + public static DotNetRunSettings EnableLockedMode(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; + toolSettings.LockedMode = true; return toolSettings; } - ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables .

Don't allow updating project lock file.

[Pure] - public static DotNetRunSettings ResetAssemblyVersion(this DotNetRunSettings toolSettings) + public static DotNetRunSettings DisableLockedMode(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("AssemblyVersion"); + toolSettings.LockedMode = false; return toolSettings; } - #endregion - #region FileVersion - ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles .

Don't allow updating project lock file.

[Pure] - public static DotNetRunSettings SetFileVersion(this DotNetRunSettings toolSettings, string fileVersion) + public static DotNetRunSettings ToggleLockedMode(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["FileVersion"] = fileVersion; + toolSettings.LockedMode = !toolSettings.LockedMode; return toolSettings; } - ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region LockFilePath + ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetRunSettings ResetFileVersion(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetLockFilePath(this DotNetRunSettings toolSettings, string lockFilePath) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("FileVersion"); + toolSettings.LockFilePath = lockFilePath; return toolSettings; } - #endregion - #region InformationalVersion - ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetRunSettings SetInformationalVersion(this DotNetRunSettings toolSettings, string informationalVersion) + public static DotNetRunSettings ResetLockFilePath(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; + toolSettings.LockFilePath = null; return toolSettings; } - ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region ForceEvaluate + ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetRunSettings ResetInformationalVersion(this DotNetRunSettings toolSettings) + public static DotNetRunSettings SetForceEvaluate(this DotNetRunSettings toolSettings, bool? forceEvaluate) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("InformationalVersion"); + toolSettings.ForceEvaluate = forceEvaluate; return toolSettings; } - #endregion - #endregion - } - #endregion - #region DotNetRestoreSettingsExtensions - ///

Used within .

- [PublicAPI] - [ExcludeFromCodeCoverage] - public static partial class DotNetRestoreSettingsExtensions - { - #region ProjectFile - ///

Sets .

Optional path to the project file to restore.

+ ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetRestoreSettings SetProjectFile(this DotNetRestoreSettings toolSettings, string projectFile) + public static DotNetRunSettings ResetForceEvaluate(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = projectFile; + toolSettings.ForceEvaluate = null; return toolSettings; } - ///

Resets .

Optional path to the project file to restore.

+ ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetRestoreSettings ResetProjectFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings EnableForceEvaluate(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = null; + toolSettings.ForceEvaluate = true; return toolSettings; } - #endregion - #region ConfigFile - ///

Sets .

The NuGet configuration file (NuGet.config) to use for the restore operation.

+ ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetRestoreSettings SetConfigFile(this DotNetRestoreSettings toolSettings, string configFile) + public static DotNetRunSettings DisableForceEvaluate(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ConfigFile = configFile; + toolSettings.ForceEvaluate = false; return toolSettings; } - ///

Resets .

The NuGet configuration file (NuGet.config) to use for the restore operation.

+ ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetRestoreSettings ResetConfigFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ToggleForceEvaluate(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ConfigFile = null; + toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; return toolSettings; } #endregion - #region Verbosity - ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ #region Runtime + ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

[Pure] - public static DotNetRestoreSettings SetVerbosity(this DotNetRestoreSettings toolSettings, DotNetVerbosity verbosity) + public static DotNetRunSettings SetRuntime(this DotNetRunSettings toolSettings, string runtime) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = verbosity; + toolSettings.Runtime = runtime; return toolSettings; } - ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

[Pure] - public static DotNetRestoreSettings ResetVerbosity(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetRuntime(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = null; + toolSettings.Runtime = null; return toolSettings; } #endregion - #region DisableParallel - ///

Sets .

Disables restoring multiple projects in parallel.

+ #region Properties + ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetDisableParallel(this DotNetRestoreSettings toolSettings, bool? disableParallel) + public static DotNetRunSettings SetProperties(this DotNetRunSettings toolSettings, IDictionary properties) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = disableParallel; + toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); return toolSettings; } - ///

Resets .

Disables restoring multiple projects in parallel.

+ ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetDisableParallel(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ClearProperties(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = null; + toolSettings.PropertiesInternal.Clear(); return toolSettings; } - ///

Enables .

Disables restoring multiple projects in parallel.

+ ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableDisableParallel(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings AddProperty(this DotNetRunSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = true; + toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); return toolSettings; } - ///

Disables .

Disables restoring multiple projects in parallel.

+ ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableDisableParallel(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveProperty(this DotNetRunSettings toolSettings, string propertyKey) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = false; + toolSettings.PropertiesInternal.Remove(propertyKey); return toolSettings; } - ///

Toggles .

Disables restoring multiple projects in parallel.

+ ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleDisableParallel(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetProperty(this DotNetRunSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = !toolSettings.DisableParallel; + toolSettings.PropertiesInternal[propertyKey] = propertyValue; return toolSettings; } - #endregion - #region Force - ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ #region RunCodeAnalysis + ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetForce(this DotNetRestoreSettings toolSettings, bool? force) + public static DotNetRunSettings SetRunCodeAnalysis(this DotNetRunSettings toolSettings, bool? runCodeAnalysis) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = force; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; return toolSettings; } - ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetForce(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetRunCodeAnalysis(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = null; + toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); return toolSettings; } - ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableForce(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings EnableRunCodeAnalysis(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = true; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; return toolSettings; } - ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableForce(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings DisableRunCodeAnalysis(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = false; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; return toolSettings; } - ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleForce(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ToggleRunCodeAnalysis(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = !toolSettings.Force; + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); return toolSettings; } #endregion - #region IgnoreFailedSources - ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

- [Pure] - public static DotNetRestoreSettings SetIgnoreFailedSources(this DotNetRestoreSettings toolSettings, bool? ignoreFailedSources) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = ignoreFailedSources; - return toolSettings; - } - ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ #region NoWarn + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetIgnoreFailedSources(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableIgnoreFailedSources(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = true; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableIgnoreFailedSources(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings AddNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = false; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleIgnoreFailedSources(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings AddNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - #endregion - #region NoCache - ///

Sets .

Specifies to not cache packages and HTTP requests.

+ ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetNoCache(this DotNetRestoreSettings toolSettings, bool? noCache) + public static DotNetRunSettings ClearNoWarns(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = noCache; + toolSettings.PropertiesInternal.Remove("NoWarn"); return toolSettings; } - ///

Resets .

Specifies to not cache packages and HTTP requests.

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetNoCache(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveNoWarns(this DotNetRunSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = null; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Enables .

Specifies to not cache packages and HTTP requests.

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableNoCache(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveNoWarns(this DotNetRunSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = true; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Disables .

Specifies to not cache packages and HTTP requests.

+ #endregion + #region WarningsAsErrors + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableNoCache(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = false; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleNoCache(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = !toolSettings.NoCache; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - #endregion - #region NoDependencies - ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetNoDependencies(this DotNetRestoreSettings toolSettings, bool? noDependencies) + public static DotNetRunSettings AddWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = noDependencies; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetNoDependencies(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings AddWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = null; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableNoDependencies(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ClearWarningsAsErrors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = true; + toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); return toolSettings; } - ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableNoDependencies(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveWarningsAsErrors(this DotNetRunSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = false; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleNoDependencies(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveWarningsAsErrors(this DotNetRunSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = !toolSettings.NoDependencies; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } #endregion - #region PackageDirectory - ///

Sets .

Specifies the directory for restored packages.

+ #region WarningLevel + ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetPackageDirectory(this DotNetRestoreSettings toolSettings, string packageDirectory) + public static DotNetRunSettings SetWarningLevel(this DotNetRunSettings toolSettings, int? warningLevel) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = packageDirectory; + toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; return toolSettings; } - ///

Resets .

Specifies the directory for restored packages.

+ ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetPackageDirectory(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetWarningLevel(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = null; + toolSettings.PropertiesInternal.Remove("WarningLevel"); return toolSettings; } #endregion - #region Sources - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ #region TreatWarningsAsErrors + ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetSources(this DotNetRestoreSettings toolSettings, params string[] sources) + public static DotNetRunSettings SetTreatWarningsAsErrors(this DotNetRunSettings toolSettings, bool? treatWarningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; return toolSettings; } - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings ResetTreatWarningsAsErrors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings AddSources(this DotNetRestoreSettings toolSettings, params string[] sources) + public static DotNetRunSettings EnableTreatWarningsAsErrors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings AddSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings DisableTreatWarningsAsErrors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; return toolSettings; } - ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ClearSources(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ToggleTreatWarningsAsErrors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.Clear(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ #endregion + #region AssemblyVersion + ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings RemoveSources(this DotNetRestoreSettings toolSettings, params string[] sources) + public static DotNetRunSettings SetAssemblyVersion(this DotNetRunSettings toolSettings, string assemblyVersion) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings RemoveSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) + public static DotNetRunSettings ResetAssemblyVersion(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.PropertiesInternal.Remove("AssemblyVersion"); return toolSettings; } #endregion - #region UseLockFile - ///

Sets .

Enables project lock file to be generated and used with restore.

+ #region FileVersion + ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetUseLockFile(this DotNetRestoreSettings toolSettings, bool? useLockFile) + public static DotNetRunSettings SetFileVersion(this DotNetRunSettings toolSettings, string fileVersion) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = useLockFile; + toolSettings.PropertiesInternal["FileVersion"] = fileVersion; return toolSettings; } - ///

Resets .

Enables project lock file to be generated and used with restore.

+ ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetUseLockFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetFileVersion(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = null; + toolSettings.PropertiesInternal.Remove("FileVersion"); return toolSettings; } - ///

Enables .

Enables project lock file to be generated and used with restore.

+ #endregion + #region InformationalVersion + ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableUseLockFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetInformationalVersion(this DotNetRunSettings toolSettings, string informationalVersion) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = true; + toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; return toolSettings; } - ///

Disables .

Enables project lock file to be generated and used with restore.

+ ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableUseLockFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetInformationalVersion(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = false; + toolSettings.PropertiesInternal.Remove("InformationalVersion"); return toolSettings; } - ///

Toggles .

Enables project lock file to be generated and used with restore.

+ #endregion + #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleUseLockFile(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetPackageId(this DotNetRunSettings toolSettings, string packageId) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = !toolSettings.UseLockFile; + toolSettings.PropertiesInternal["PackageId"] = packageId; return toolSettings; } - #endregion - #region LockedMode - ///

Sets .

Don't allow updating project lock file.

+ ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetLockedMode(this DotNetRestoreSettings toolSettings, bool? lockedMode) + public static DotNetRunSettings ResetPackageId(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = lockedMode; + toolSettings.PropertiesInternal.Remove("PackageId"); return toolSettings; } - ///

Resets .

Don't allow updating project lock file.

+ #endregion + #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetLockedMode(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetVersion(this DotNetRunSettings toolSettings, string version) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = null; + toolSettings.PropertiesInternal["Version"] = version; return toolSettings; } - ///

Enables .

Don't allow updating project lock file.

+ ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableLockedMode(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetVersion(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = true; + toolSettings.PropertiesInternal.Remove("Version"); return toolSettings; } - ///

Disables .

Don't allow updating project lock file.

+ #endregion + #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableLockedMode(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetVersionPrefix(this DotNetRunSettings toolSettings, string versionPrefix) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = false; + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; return toolSettings; } - ///

Toggles .

Don't allow updating project lock file.

+ ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleLockedMode(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetVersionPrefix(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = !toolSettings.LockedMode; + toolSettings.PropertiesInternal.Remove("VersionPrefix"); return toolSettings; } #endregion - #region LockFilePath - ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetLockFilePath(this DotNetRestoreSettings toolSettings, string lockFilePath) + public static DotNetRunSettings SetAuthors(this DotNetRunSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = lockFilePath; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetLockFilePath(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings SetAuthors(this DotNetRunSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - #endregion - #region ForceEvaluate - ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetForceEvaluate(this DotNetRestoreSettings toolSettings, bool? forceEvaluate) + public static DotNetRunSettings AddAuthors(this DotNetRunSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = forceEvaluate; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetForceEvaluate(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings AddAuthors(this DotNetRunSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = null; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings EnableForceEvaluate(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ClearAuthors(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = true; + toolSettings.PropertiesInternal.Remove("Authors"); return toolSettings; } - ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings DisableForceEvaluate(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveAuthors(this DotNetRunSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = false; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ToggleForceEvaluate(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings RemoveAuthors(this DotNetRunSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } #endregion - #region Runtime - ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings SetRuntime(this DotNetRestoreSettings toolSettings, string runtime) + public static DotNetRunSettings SetTitle(this DotNetRunSettings toolSettings, string title) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = runtime; + toolSettings.PropertiesInternal["Title"] = title; return toolSettings; } - ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetRestoreSettings ResetRuntime(this DotNetRestoreSettings toolSettings) + public static DotNetRunSettings ResetTitle(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = null; + toolSettings.PropertiesInternal.Remove("Title"); return toolSettings; } #endregion - } - #endregion - #region DotNetPackSettingsExtensions - ///

Used within .

- [PublicAPI] - [ExcludeFromCodeCoverage] - public static partial class DotNetPackSettingsExtensions - { - #region Project - ///

Sets .

The project to pack. It's either a path to a csproj file or to a directory. If omitted, it defaults to the current directory.

+ #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetProject(this DotNetPackSettings toolSettings, string project) + public static DotNetRunSettings SetDescription(this DotNetRunSettings toolSettings, string description) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = project; + toolSettings.PropertiesInternal["Description"] = description; return toolSettings; } - ///

Resets .

The project to pack. It's either a path to a csproj file or to a directory. If omitted, it defaults to the current directory.

+ ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetProject(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetDescription(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = null; + toolSettings.PropertiesInternal.Remove("Description"); return toolSettings; } #endregion - #region Configuration - ///

Sets .

Configuration to use when building the project. If not specified, configuration defaults to Debug.

+ #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetConfiguration(this DotNetPackSettings toolSettings, string configuration) + public static DotNetRunSettings SetCopyright(this DotNetRunSettings toolSettings, string copyright) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = configuration; + toolSettings.PropertiesInternal["Copyright"] = copyright; return toolSettings; } - ///

Resets .

Configuration to use when building the project. If not specified, configuration defaults to Debug.

+ ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetConfiguration(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetCopyright(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = null; + toolSettings.PropertiesInternal.Remove("Copyright"); return toolSettings; } #endregion - #region IncludeSource - ///

Sets .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

+ #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetIncludeSource(this DotNetPackSettings toolSettings, bool? includeSource) + public static DotNetRunSettings SetPackageRequireLicenseAcceptance(this DotNetRunSettings toolSettings, bool? packageRequireLicenseAcceptance) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSource = includeSource; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; return toolSettings; } - ///

Resets .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

+ ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetIncludeSource(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetPackageRequireLicenseAcceptance(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSource = null; + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); return toolSettings; } - ///

Enables .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

+ ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableIncludeSource(this DotNetPackSettings toolSettings) + public static DotNetRunSettings EnablePackageRequireLicenseAcceptance(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSource = true; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; return toolSettings; } - ///

Disables .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

+ ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableIncludeSource(this DotNetPackSettings toolSettings) + public static DotNetRunSettings DisablePackageRequireLicenseAcceptance(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSource = false; + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; return toolSettings; } - ///

Toggles .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

+ ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleIncludeSource(this DotNetPackSettings toolSettings) + public static DotNetRunSettings TogglePackageRequireLicenseAcceptance(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSource = !toolSettings.IncludeSource; + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); return toolSettings; } #endregion - #region IncludeSymbols - ///

Sets .

Generates the symbols nupkg.

+ #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetIncludeSymbols(this DotNetPackSettings toolSettings, bool? includeSymbols) + public static DotNetRunSettings SetPackageLicenseUrl(this DotNetRunSettings toolSettings, string packageLicenseUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSymbols = includeSymbols; + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; return toolSettings; } - ///

Resets .

Generates the symbols nupkg.

+ ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetIncludeSymbols(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetPackageLicenseUrl(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSymbols = null; + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); return toolSettings; } - ///

Enables .

Generates the symbols nupkg.

+ #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableIncludeSymbols(this DotNetPackSettings toolSettings) + public static DotNetRunSettings SetPackageProjectUrl(this DotNetRunSettings toolSettings, string packageProjectUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSymbols = true; + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; return toolSettings; } - ///

Disables .

Generates the symbols nupkg.

+ ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableIncludeSymbols(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetPackageProjectUrl(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSymbols = false; + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); return toolSettings; } - ///

Toggles .

Generates the symbols nupkg.

+ #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleIncludeSymbols(this DotNetPackSettings toolSettings) + public static DotNetRunSettings SetPackageIconUrl(this DotNetRunSettings toolSettings, string packageIconUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.IncludeSymbols = !toolSettings.IncludeSymbols; + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; return toolSettings; } - #endregion - #region NoBuild - ///

Sets .

Don't build the project before packing.

+ ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetNoBuild(this DotNetPackSettings toolSettings, bool? noBuild) + public static DotNetRunSettings ResetPackageIconUrl(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = noBuild; + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); return toolSettings; } - ///

Resets .

Don't build the project before packing.

+ #endregion + #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetNoBuild(this DotNetPackSettings toolSettings) + public static DotNetRunSettings SetPackageTags(this DotNetRunSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Enables .

Don't build the project before packing.

+ ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableNoBuild(this DotNetPackSettings toolSettings) + public static DotNetRunSettings SetPackageTags(this DotNetRunSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = true; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Disables .

Don't build the project before packing.

+ ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableNoBuild(this DotNetPackSettings toolSettings) + public static DotNetRunSettings AddPackageTags(this DotNetRunSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = false; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Toggles .

Don't build the project before packing.

+ ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleNoBuild(this DotNetPackSettings toolSettings) + public static DotNetRunSettings AddPackageTags(this DotNetRunSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = !toolSettings.NoBuild; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - #endregion - #region NoRestore - ///

Sets .

Doesn't perform an implicit restore when running the command.

+ ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetNoRestore(this DotNetPackSettings toolSettings, bool? noRestore) + public static DotNetRunSettings ClearPackageTags(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = noRestore; + toolSettings.PropertiesInternal.Remove("PackageTags"); return toolSettings; } - ///

Resets .

Doesn't perform an implicit restore when running the command.

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetNoRestore(this DotNetPackSettings toolSettings) + public static DotNetRunSettings RemovePackageTags(this DotNetRunSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = null; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Enables .

Doesn't perform an implicit restore when running the command.

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableNoRestore(this DotNetPackSettings toolSettings) + public static DotNetRunSettings RemovePackageTags(this DotNetRunSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = true; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Disables .

Doesn't perform an implicit restore when running the command.

+ #endregion + #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableNoRestore(this DotNetPackSettings toolSettings) + public static DotNetRunSettings SetPackageReleaseNotes(this DotNetRunSettings toolSettings, string packageReleaseNotes) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = false; + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; return toolSettings; } - ///

Toggles .

Doesn't perform an implicit restore when running the command.

+ ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleNoRestore(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetPackageReleaseNotes(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = !toolSettings.NoRestore; + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); return toolSettings; } #endregion - #region OutputDirectory - ///

Sets .

Places the built packages in the directory specified.

+ #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetOutputDirectory(this DotNetPackSettings toolSettings, string outputDirectory) + public static DotNetRunSettings SetRepositoryUrl(this DotNetRunSettings toolSettings, string repositoryUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.OutputDirectory = outputDirectory; + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; return toolSettings; } - ///

Resets .

Places the built packages in the directory specified.

+ ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetOutputDirectory(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetRepositoryUrl(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.OutputDirectory = null; + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); return toolSettings; } #endregion - #region Serviceable - ///

Sets .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetServiceable(this DotNetPackSettings toolSettings, bool? serviceable) + public static DotNetRunSettings SetRepositoryType(this DotNetRunSettings toolSettings, string repositoryType) { toolSettings = toolSettings.NewInstance(); - toolSettings.Serviceable = serviceable; + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; return toolSettings; } - ///

Resets .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetServiceable(this DotNetPackSettings toolSettings) + public static DotNetRunSettings ResetRepositoryType(this DotNetRunSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Serviceable = null; + toolSettings.PropertiesInternal.Remove("RepositoryType"); return toolSettings; } - ///

Enables .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ #endregion + #endregion + } + #endregion + #region DotNetRestoreSettingsExtensions + ///

Used within .

+ [PublicAPI] + [ExcludeFromCodeCoverage] + public static partial class DotNetRestoreSettingsExtensions + { + #region ProjectFile + ///

Sets .

Optional path to the project file to restore.

[Pure] - public static DotNetPackSettings EnableServiceable(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings SetProjectFile(this DotNetRestoreSettings toolSettings, string projectFile) { toolSettings = toolSettings.NewInstance(); - toolSettings.Serviceable = true; + toolSettings.ProjectFile = projectFile; return toolSettings; } - ///

Disables .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ ///

Resets .

Optional path to the project file to restore.

[Pure] - public static DotNetPackSettings DisableServiceable(this DotNetPackSettings toolSettings) - { - toolSettings = toolSettings.NewInstance(); - toolSettings.Serviceable = false; - return toolSettings; - } - ///

Toggles .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

- [Pure] - public static DotNetPackSettings ToggleServiceable(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetProjectFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Serviceable = !toolSettings.Serviceable; + toolSettings.ProjectFile = null; return toolSettings; } #endregion - #region Verbostiy - ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ #region ConfigFile + ///

Sets .

The NuGet configuration file (NuGet.config) to use for the restore operation.

[Pure] - public static DotNetPackSettings SetVerbostiy(this DotNetPackSettings toolSettings, DotNetVerbosity verbostiy) + public static DotNetRestoreSettings SetConfigFile(this DotNetRestoreSettings toolSettings, string configFile) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbostiy = verbostiy; + toolSettings.ConfigFile = configFile; return toolSettings; } - ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ ///

Resets .

The NuGet configuration file (NuGet.config) to use for the restore operation.

[Pure] - public static DotNetPackSettings ResetVerbostiy(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetConfigFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbostiy = null; + toolSettings.ConfigFile = null; return toolSettings; } #endregion - #region VersionSuffix - ///

Sets .

Defines the value for the $(VersionSuffix) MSBuild property in the project.

+ #region Verbosity + ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

[Pure] - public static DotNetPackSettings SetVersionSuffix(this DotNetPackSettings toolSettings, string versionSuffix) + public static DotNetRestoreSettings SetVerbosity(this DotNetRestoreSettings toolSettings, DotNetVerbosity verbosity) { toolSettings = toolSettings.NewInstance(); - toolSettings.VersionSuffix = versionSuffix; + toolSettings.Verbosity = verbosity; return toolSettings; } - ///

Resets .

Defines the value for the $(VersionSuffix) MSBuild property in the project.

+ ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

[Pure] - public static DotNetPackSettings ResetVersionSuffix(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetVerbosity(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.VersionSuffix = null; + toolSettings.Verbosity = null; return toolSettings; } #endregion #region DisableParallel - ///

Sets .

Disables restoring multiple projects in parallel.

+ ///

Sets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetPackSettings SetDisableParallel(this DotNetPackSettings toolSettings, bool? disableParallel) + public static DotNetRestoreSettings SetDisableParallel(this DotNetRestoreSettings toolSettings, bool? disableParallel) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = disableParallel; return toolSettings; } - ///

Resets .

Disables restoring multiple projects in parallel.

+ ///

Resets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetPackSettings ResetDisableParallel(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetDisableParallel(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = null; return toolSettings; } - ///

Enables .

Disables restoring multiple projects in parallel.

+ ///

Enables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetPackSettings EnableDisableParallel(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableDisableParallel(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = true; return toolSettings; } - ///

Disables .

Disables restoring multiple projects in parallel.

+ ///

Disables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetPackSettings DisableDisableParallel(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableDisableParallel(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = false; return toolSettings; } - ///

Toggles .

Disables restoring multiple projects in parallel.

+ ///

Toggles .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetPackSettings ToggleDisableParallel(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleDisableParallel(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = !toolSettings.DisableParallel; @@ -3683,41 +3681,41 @@ public static DotNetPackSettings ToggleDisableParallel(this DotNetPackSettings t } #endregion #region Force - ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetPackSettings SetForce(this DotNetPackSettings toolSettings, bool? force) + public static DotNetRestoreSettings SetForce(this DotNetRestoreSettings toolSettings, bool? force) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = force; return toolSettings; } - ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetPackSettings ResetForce(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetForce(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = null; return toolSettings; } - ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetPackSettings EnableForce(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableForce(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = true; return toolSettings; } - ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetPackSettings DisableForce(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableForce(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = false; return toolSettings; } - ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetPackSettings ToggleForce(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleForce(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = !toolSettings.Force; @@ -3725,41 +3723,41 @@ public static DotNetPackSettings ToggleForce(this DotNetPackSettings toolSetting } #endregion #region IgnoreFailedSources - ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPackSettings SetIgnoreFailedSources(this DotNetPackSettings toolSettings, bool? ignoreFailedSources) + public static DotNetRestoreSettings SetIgnoreFailedSources(this DotNetRestoreSettings toolSettings, bool? ignoreFailedSources) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = ignoreFailedSources; return toolSettings; } - ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPackSettings ResetIgnoreFailedSources(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetIgnoreFailedSources(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = null; return toolSettings; } - ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPackSettings EnableIgnoreFailedSources(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableIgnoreFailedSources(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = true; return toolSettings; } - ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPackSettings DisableIgnoreFailedSources(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableIgnoreFailedSources(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = false; return toolSettings; } - ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPackSettings ToggleIgnoreFailedSources(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleIgnoreFailedSources(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; @@ -3767,41 +3765,41 @@ public static DotNetPackSettings ToggleIgnoreFailedSources(this DotNetPackSettin } #endregion #region NoCache - ///

Sets .

Specifies to not cache packages and HTTP requests.

+ ///

Sets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPackSettings SetNoCache(this DotNetPackSettings toolSettings, bool? noCache) + public static DotNetRestoreSettings SetNoCache(this DotNetRestoreSettings toolSettings, bool? noCache) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = noCache; return toolSettings; } - ///

Resets .

Specifies to not cache packages and HTTP requests.

+ ///

Resets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPackSettings ResetNoCache(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetNoCache(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = null; return toolSettings; } - ///

Enables .

Specifies to not cache packages and HTTP requests.

+ ///

Enables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPackSettings EnableNoCache(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableNoCache(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = true; return toolSettings; } - ///

Disables .

Specifies to not cache packages and HTTP requests.

+ ///

Disables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPackSettings DisableNoCache(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableNoCache(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = false; return toolSettings; } - ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ ///

Toggles .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPackSettings ToggleNoCache(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleNoCache(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = !toolSettings.NoCache; @@ -3809,41 +3807,41 @@ public static DotNetPackSettings ToggleNoCache(this DotNetPackSettings toolSetti } #endregion #region NoDependencies - ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPackSettings SetNoDependencies(this DotNetPackSettings toolSettings, bool? noDependencies) + public static DotNetRestoreSettings SetNoDependencies(this DotNetRestoreSettings toolSettings, bool? noDependencies) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = noDependencies; return toolSettings; } - ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPackSettings ResetNoDependencies(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetNoDependencies(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = null; return toolSettings; } - ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPackSettings EnableNoDependencies(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableNoDependencies(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = true; return toolSettings; } - ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPackSettings DisableNoDependencies(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableNoDependencies(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = false; return toolSettings; } - ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPackSettings ToggleNoDependencies(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleNoDependencies(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = !toolSettings.NoDependencies; @@ -3851,17 +3849,17 @@ public static DotNetPackSettings ToggleNoDependencies(this DotNetPackSettings to } #endregion #region PackageDirectory - ///

Sets .

Specifies the directory for restored packages.

+ ///

Sets .

Specifies the directory for restored packages.

[Pure] - public static DotNetPackSettings SetPackageDirectory(this DotNetPackSettings toolSettings, string packageDirectory) + public static DotNetRestoreSettings SetPackageDirectory(this DotNetRestoreSettings toolSettings, string packageDirectory) { toolSettings = toolSettings.NewInstance(); toolSettings.PackageDirectory = packageDirectory; return toolSettings; } - ///

Resets .

Specifies the directory for restored packages.

+ ///

Resets .

Specifies the directory for restored packages.

[Pure] - public static DotNetPackSettings ResetPackageDirectory(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageDirectory(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PackageDirectory = null; @@ -3869,58 +3867,58 @@ public static DotNetPackSettings ResetPackageDirectory(this DotNetPackSettings t } #endregion #region Sources - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings SetSources(this DotNetPackSettings toolSettings, params string[] sources) + public static DotNetRestoreSettings SetSources(this DotNetRestoreSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings SetSources(this DotNetPackSettings toolSettings, IEnumerable sources) + public static DotNetRestoreSettings SetSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings AddSources(this DotNetPackSettings toolSettings, params string[] sources) + public static DotNetRestoreSettings AddSources(this DotNetRestoreSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings AddSources(this DotNetPackSettings toolSettings, IEnumerable sources) + public static DotNetRestoreSettings AddSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings ClearSources(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearSources(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.Clear(); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings RemoveSources(this DotNetPackSettings toolSettings, params string[] sources) + public static DotNetRestoreSettings RemoveSources(this DotNetRestoreSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet(sources); toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPackSettings RemoveSources(this DotNetPackSettings toolSettings, IEnumerable sources) + public static DotNetRestoreSettings RemoveSources(this DotNetRestoreSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet(sources); @@ -3929,41 +3927,41 @@ public static DotNetPackSettings RemoveSources(this DotNetPackSettings toolSetti } #endregion #region UseLockFile - ///

Sets .

Enables project lock file to be generated and used with restore.

+ ///

Sets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPackSettings SetUseLockFile(this DotNetPackSettings toolSettings, bool? useLockFile) + public static DotNetRestoreSettings SetUseLockFile(this DotNetRestoreSettings toolSettings, bool? useLockFile) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = useLockFile; return toolSettings; } - ///

Resets .

Enables project lock file to be generated and used with restore.

+ ///

Resets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPackSettings ResetUseLockFile(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetUseLockFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = null; return toolSettings; } - ///

Enables .

Enables project lock file to be generated and used with restore.

+ ///

Enables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPackSettings EnableUseLockFile(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableUseLockFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = true; return toolSettings; } - ///

Disables .

Enables project lock file to be generated and used with restore.

+ ///

Disables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPackSettings DisableUseLockFile(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableUseLockFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = false; return toolSettings; } - ///

Toggles .

Enables project lock file to be generated and used with restore.

+ ///

Toggles .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPackSettings ToggleUseLockFile(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleUseLockFile(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = !toolSettings.UseLockFile; @@ -3971,41 +3969,41 @@ public static DotNetPackSettings ToggleUseLockFile(this DotNetPackSettings toolS } #endregion #region LockedMode - ///

Sets .

Don't allow updating project lock file.

+ ///

Sets .

Don't allow updating project lock file.

[Pure] - public static DotNetPackSettings SetLockedMode(this DotNetPackSettings toolSettings, bool? lockedMode) + public static DotNetRestoreSettings SetLockedMode(this DotNetRestoreSettings toolSettings, bool? lockedMode) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = lockedMode; return toolSettings; } - ///

Resets .

Don't allow updating project lock file.

+ ///

Resets .

Don't allow updating project lock file.

[Pure] - public static DotNetPackSettings ResetLockedMode(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetLockedMode(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = null; return toolSettings; } - ///

Enables .

Don't allow updating project lock file.

+ ///

Enables .

Don't allow updating project lock file.

[Pure] - public static DotNetPackSettings EnableLockedMode(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableLockedMode(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = true; return toolSettings; } - ///

Disables .

Don't allow updating project lock file.

+ ///

Disables .

Don't allow updating project lock file.

[Pure] - public static DotNetPackSettings DisableLockedMode(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableLockedMode(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = false; return toolSettings; } - ///

Toggles .

Don't allow updating project lock file.

+ ///

Toggles .

Don't allow updating project lock file.

[Pure] - public static DotNetPackSettings ToggleLockedMode(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleLockedMode(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = !toolSettings.LockedMode; @@ -4013,17 +4011,17 @@ public static DotNetPackSettings ToggleLockedMode(this DotNetPackSettings toolSe } #endregion #region LockFilePath - ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetPackSettings SetLockFilePath(this DotNetPackSettings toolSettings, string lockFilePath) + public static DotNetRestoreSettings SetLockFilePath(this DotNetRestoreSettings toolSettings, string lockFilePath) { toolSettings = toolSettings.NewInstance(); toolSettings.LockFilePath = lockFilePath; return toolSettings; } - ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetPackSettings ResetLockFilePath(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetLockFilePath(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockFilePath = null; @@ -4031,41 +4029,41 @@ public static DotNetPackSettings ResetLockFilePath(this DotNetPackSettings toolS } #endregion #region ForceEvaluate - ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPackSettings SetForceEvaluate(this DotNetPackSettings toolSettings, bool? forceEvaluate) + public static DotNetRestoreSettings SetForceEvaluate(this DotNetRestoreSettings toolSettings, bool? forceEvaluate) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = forceEvaluate; return toolSettings; } - ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPackSettings ResetForceEvaluate(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetForceEvaluate(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = null; return toolSettings; } - ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPackSettings EnableForceEvaluate(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableForceEvaluate(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = true; return toolSettings; } - ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPackSettings DisableForceEvaluate(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableForceEvaluate(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = false; return toolSettings; } - ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPackSettings ToggleForceEvaluate(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleForceEvaluate(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; @@ -4073,17 +4071,17 @@ public static DotNetPackSettings ToggleForceEvaluate(this DotNetPackSettings too } #endregion #region Runtime - ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

[Pure] - public static DotNetPackSettings SetRuntime(this DotNetPackSettings toolSettings, string runtime) + public static DotNetRestoreSettings SetRuntime(this DotNetRestoreSettings toolSettings, string runtime) { toolSettings = toolSettings.NewInstance(); toolSettings.Runtime = runtime; return toolSettings; } - ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

[Pure] - public static DotNetPackSettings ResetRuntime(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetRuntime(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Runtime = null; @@ -4091,82 +4089,82 @@ public static DotNetPackSettings ResetRuntime(this DotNetPackSettings toolSettin } #endregion #region Properties - ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetProperties(this DotNetPackSettings toolSettings, IDictionary properties) + public static DotNetRestoreSettings SetProperties(this DotNetRestoreSettings toolSettings, IDictionary properties) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); return toolSettings; } - ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ClearProperties(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearProperties(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Clear(); return toolSettings; } - ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddProperty(this DotNetPackSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetRestoreSettings AddProperty(this DotNetRestoreSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); return toolSettings; } - ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveProperty(this DotNetPackSettings toolSettings, string propertyKey) + public static DotNetRestoreSettings RemoveProperty(this DotNetRestoreSettings toolSettings, string propertyKey) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove(propertyKey); return toolSettings; } - ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetProperty(this DotNetPackSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetRestoreSettings SetProperty(this DotNetRestoreSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal[propertyKey] = propertyValue; return toolSettings; } #region RunCodeAnalysis - ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetRunCodeAnalysis(this DotNetPackSettings toolSettings, bool? runCodeAnalysis) + public static DotNetRestoreSettings SetRunCodeAnalysis(this DotNetRestoreSettings toolSettings, bool? runCodeAnalysis) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; return toolSettings; } - ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetRunCodeAnalysis(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetRunCodeAnalysis(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); return toolSettings; } - ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableRunCodeAnalysis(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableRunCodeAnalysis(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; return toolSettings; } - ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableRunCodeAnalysis(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableRunCodeAnalysis(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; return toolSettings; } - ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleRunCodeAnalysis(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleRunCodeAnalysis(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); @@ -4174,57 +4172,57 @@ public static DotNetPackSettings ToggleRunCodeAnalysis(this DotNetPackSettings t } #endregion #region NoWarn - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) + public static DotNetRestoreSettings SetNoWarns(this DotNetRestoreSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) + public static DotNetRestoreSettings SetNoWarns(this DotNetRestoreSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) + public static DotNetRestoreSettings AddNoWarns(this DotNetRestoreSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) + public static DotNetRestoreSettings AddNoWarns(this DotNetRestoreSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ClearNoWarns(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearNoWarns(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("NoWarn"); return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) + public static DotNetRestoreSettings RemoveNoWarns(this DotNetRestoreSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) + public static DotNetRestoreSettings RemoveNoWarns(this DotNetRestoreSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); @@ -4232,57 +4230,57 @@ public static DotNetPackSettings RemoveNoWarns(this DotNetPackSettings toolSetti } #endregion #region WarningsAsErrors - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRestoreSettings SetWarningsAsErrors(this DotNetRestoreSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRestoreSettings SetWarningsAsErrors(this DotNetRestoreSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRestoreSettings AddWarningsAsErrors(this DotNetRestoreSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRestoreSettings AddWarningsAsErrors(this DotNetRestoreSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ClearWarningsAsErrors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearWarningsAsErrors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) + public static DotNetRestoreSettings RemoveWarningsAsErrors(this DotNetRestoreSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetRestoreSettings RemoveWarningsAsErrors(this DotNetRestoreSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); @@ -4290,17 +4288,17 @@ public static DotNetPackSettings RemoveWarningsAsErrors(this DotNetPackSettings } #endregion #region WarningLevel - ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetWarningLevel(this DotNetPackSettings toolSettings, int? warningLevel) + public static DotNetRestoreSettings SetWarningLevel(this DotNetRestoreSettings toolSettings, int? warningLevel) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; return toolSettings; } - ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetWarningLevel(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetWarningLevel(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("WarningLevel"); @@ -4308,41 +4306,41 @@ public static DotNetPackSettings ResetWarningLevel(this DotNetPackSettings toolS } #endregion #region TreatWarningsAsErrors - ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetTreatWarningsAsErrors(this DotNetPackSettings toolSettings, bool? treatWarningsAsErrors) + public static DotNetRestoreSettings SetTreatWarningsAsErrors(this DotNetRestoreSettings toolSettings, bool? treatWarningsAsErrors) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; return toolSettings; } - ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetTreatWarningsAsErrors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetTreatWarningsAsErrors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); return toolSettings; } - ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnableTreatWarningsAsErrors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnableTreatWarningsAsErrors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; return toolSettings; } - ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisableTreatWarningsAsErrors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisableTreatWarningsAsErrors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; return toolSettings; } - ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ToggleTreatWarningsAsErrors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ToggleTreatWarningsAsErrors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); @@ -4350,17 +4348,17 @@ public static DotNetPackSettings ToggleTreatWarningsAsErrors(this DotNetPackSett } #endregion #region AssemblyVersion - ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetAssemblyVersion(this DotNetPackSettings toolSettings, string assemblyVersion) + public static DotNetRestoreSettings SetAssemblyVersion(this DotNetRestoreSettings toolSettings, string assemblyVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; return toolSettings; } - ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetAssemblyVersion(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetAssemblyVersion(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("AssemblyVersion"); @@ -4368,17 +4366,17 @@ public static DotNetPackSettings ResetAssemblyVersion(this DotNetPackSettings to } #endregion #region FileVersion - ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetFileVersion(this DotNetPackSettings toolSettings, string fileVersion) + public static DotNetRestoreSettings SetFileVersion(this DotNetRestoreSettings toolSettings, string fileVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["FileVersion"] = fileVersion; return toolSettings; } - ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetFileVersion(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetFileVersion(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("FileVersion"); @@ -4386,17 +4384,17 @@ public static DotNetPackSettings ResetFileVersion(this DotNetPackSettings toolSe } #endregion #region InformationalVersion - ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetInformationalVersion(this DotNetPackSettings toolSettings, string informationalVersion) + public static DotNetRestoreSettings SetInformationalVersion(this DotNetRestoreSettings toolSettings, string informationalVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; return toolSettings; } - ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetInformationalVersion(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetInformationalVersion(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("InformationalVersion"); @@ -4404,17 +4402,17 @@ public static DotNetPackSettings ResetInformationalVersion(this DotNetPackSettin } #endregion #region PackageId - ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageId(this DotNetPackSettings toolSettings, string packageId) + public static DotNetRestoreSettings SetPackageId(this DotNetRestoreSettings toolSettings, string packageId) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageId"] = packageId; return toolSettings; } - ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageId(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageId(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageId"); @@ -4422,17 +4420,17 @@ public static DotNetPackSettings ResetPackageId(this DotNetPackSettings toolSett } #endregion #region Version - ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetVersion(this DotNetPackSettings toolSettings, string version) + public static DotNetRestoreSettings SetVersion(this DotNetRestoreSettings toolSettings, string version) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["Version"] = version; return toolSettings; } - ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetVersion(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetVersion(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("Version"); @@ -4440,17 +4438,17 @@ public static DotNetPackSettings ResetVersion(this DotNetPackSettings toolSettin } #endregion #region VersionPrefix - ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetVersionPrefix(this DotNetPackSettings toolSettings, string versionPrefix) + public static DotNetRestoreSettings SetVersionPrefix(this DotNetRestoreSettings toolSettings, string versionPrefix) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; return toolSettings; } - ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetVersionPrefix(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetVersionPrefix(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("VersionPrefix"); @@ -4458,57 +4456,57 @@ public static DotNetPackSettings ResetVersionPrefix(this DotNetPackSettings tool } #endregion #region Authors - ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetAuthors(this DotNetPackSettings toolSettings, params string[] authors) + public static DotNetRestoreSettings SetAuthors(this DotNetRestoreSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + public static DotNetRestoreSettings SetAuthors(this DotNetRestoreSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddAuthors(this DotNetPackSettings toolSettings, params string[] authors) + public static DotNetRestoreSettings AddAuthors(this DotNetRestoreSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + public static DotNetRestoreSettings AddAuthors(this DotNetRestoreSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ClearAuthors(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearAuthors(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("Authors"); return toolSettings; } - ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveAuthors(this DotNetPackSettings toolSettings, params string[] authors) + public static DotNetRestoreSettings RemoveAuthors(this DotNetRestoreSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemoveAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + public static DotNetRestoreSettings RemoveAuthors(this DotNetRestoreSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); @@ -4516,17 +4514,17 @@ public static DotNetPackSettings RemoveAuthors(this DotNetPackSettings toolSetti } #endregion #region Title - ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetTitle(this DotNetPackSettings toolSettings, string title) + public static DotNetRestoreSettings SetTitle(this DotNetRestoreSettings toolSettings, string title) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["Title"] = title; return toolSettings; } - ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetTitle(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetTitle(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("Title"); @@ -4534,17 +4532,17 @@ public static DotNetPackSettings ResetTitle(this DotNetPackSettings toolSettings } #endregion #region Description - ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetDescription(this DotNetPackSettings toolSettings, string description) + public static DotNetRestoreSettings SetDescription(this DotNetRestoreSettings toolSettings, string description) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["Description"] = description; return toolSettings; } - ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetDescription(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetDescription(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("Description"); @@ -4552,17 +4550,17 @@ public static DotNetPackSettings ResetDescription(this DotNetPackSettings toolSe } #endregion #region Copyright - ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetCopyright(this DotNetPackSettings toolSettings, string copyright) + public static DotNetRestoreSettings SetCopyright(this DotNetRestoreSettings toolSettings, string copyright) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["Copyright"] = copyright; return toolSettings; } - ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetCopyright(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetCopyright(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("Copyright"); @@ -4570,41 +4568,41 @@ public static DotNetPackSettings ResetCopyright(this DotNetPackSettings toolSett } #endregion #region PackageRequireLicenseAcceptance - ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings, bool? packageRequireLicenseAcceptance) + public static DotNetRestoreSettings SetPackageRequireLicenseAcceptance(this DotNetRestoreSettings toolSettings, bool? packageRequireLicenseAcceptance) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; return toolSettings; } - ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageRequireLicenseAcceptance(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); return toolSettings; } - ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings EnablePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings EnablePackageRequireLicenseAcceptance(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; return toolSettings; } - ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings DisablePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings DisablePackageRequireLicenseAcceptance(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; return toolSettings; } - ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings TogglePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings TogglePackageRequireLicenseAcceptance(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); @@ -4612,17 +4610,17 @@ public static DotNetPackSettings TogglePackageRequireLicenseAcceptance(this DotN } #endregion #region PackageLicenseUrl - ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageLicenseUrl(this DotNetPackSettings toolSettings, string packageLicenseUrl) + public static DotNetRestoreSettings SetPackageLicenseUrl(this DotNetRestoreSettings toolSettings, string packageLicenseUrl) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; return toolSettings; } - ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageLicenseUrl(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageLicenseUrl(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); @@ -4630,17 +4628,17 @@ public static DotNetPackSettings ResetPackageLicenseUrl(this DotNetPackSettings } #endregion #region PackageProjectUrl - ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageProjectUrl(this DotNetPackSettings toolSettings, string packageProjectUrl) + public static DotNetRestoreSettings SetPackageProjectUrl(this DotNetRestoreSettings toolSettings, string packageProjectUrl) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; return toolSettings; } - ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageProjectUrl(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageProjectUrl(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); @@ -4648,17 +4646,17 @@ public static DotNetPackSettings ResetPackageProjectUrl(this DotNetPackSettings } #endregion #region PackageIconUrl - ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageIconUrl(this DotNetPackSettings toolSettings, string packageIconUrl) + public static DotNetRestoreSettings SetPackageIconUrl(this DotNetRestoreSettings toolSettings, string packageIconUrl) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; return toolSettings; } - ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageIconUrl(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageIconUrl(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageIconUrl"); @@ -4666,57 +4664,57 @@ public static DotNetPackSettings ResetPackageIconUrl(this DotNetPackSettings too } #endregion #region PackageTags - ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + public static DotNetRestoreSettings SetPackageTags(this DotNetRestoreSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + public static DotNetRestoreSettings SetPackageTags(this DotNetRestoreSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddPackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + public static DotNetRestoreSettings AddPackageTags(this DotNetRestoreSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings AddPackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + public static DotNetRestoreSettings AddPackageTags(this DotNetRestoreSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ClearPackageTags(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ClearPackageTags(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageTags"); return toolSettings; } - ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemovePackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + public static DotNetRestoreSettings RemovePackageTags(this DotNetRestoreSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings RemovePackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + public static DotNetRestoreSettings RemovePackageTags(this DotNetRestoreSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); @@ -4724,17 +4722,17 @@ public static DotNetPackSettings RemovePackageTags(this DotNetPackSettings toolS } #endregion #region PackageReleaseNotes - ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetPackageReleaseNotes(this DotNetPackSettings toolSettings, string packageReleaseNotes) + public static DotNetRestoreSettings SetPackageReleaseNotes(this DotNetRestoreSettings toolSettings, string packageReleaseNotes) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; return toolSettings; } - ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetPackageReleaseNotes(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetPackageReleaseNotes(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); @@ -4742,17 +4740,17 @@ public static DotNetPackSettings ResetPackageReleaseNotes(this DotNetPackSetting } #endregion #region RepositoryUrl - ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetRepositoryUrl(this DotNetPackSettings toolSettings, string repositoryUrl) + public static DotNetRestoreSettings SetRepositoryUrl(this DotNetRestoreSettings toolSettings, string repositoryUrl) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; return toolSettings; } - ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetRepositoryUrl(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetRepositoryUrl(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("RepositoryUrl"); @@ -4760,17 +4758,17 @@ public static DotNetPackSettings ResetRepositoryUrl(this DotNetPackSettings tool } #endregion #region RepositoryType - ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings SetRepositoryType(this DotNetPackSettings toolSettings, string repositoryType) + public static DotNetRestoreSettings SetRepositoryType(this DotNetRestoreSettings toolSettings, string repositoryType) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; return toolSettings; } - ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPackSettings ResetRepositoryType(this DotNetPackSettings toolSettings) + public static DotNetRestoreSettings ResetRepositoryType(this DotNetRestoreSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("RepositoryType"); @@ -4780,144 +4778,210 @@ public static DotNetPackSettings ResetRepositoryType(this DotNetPackSettings too #endregion } #endregion - #region DotNetBuildSettingsExtensions + #region DotNetPackSettingsExtensions ///

Used within .

[PublicAPI] [ExcludeFromCodeCoverage] - public static partial class DotNetBuildSettingsExtensions + public static partial class DotNetPackSettingsExtensions { - #region ProjectFile - ///

Sets .

The project file to build. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ #region Project + ///

Sets .

The project to pack. It's either a path to a csproj file or to a directory. If omitted, it defaults to the current directory.

[Pure] - public static DotNetBuildSettings SetProjectFile(this DotNetBuildSettings toolSettings, string projectFile) + public static DotNetPackSettings SetProject(this DotNetPackSettings toolSettings, string project) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = projectFile; + toolSettings.Project = project; return toolSettings; } - ///

Resets .

The project file to build. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ ///

Resets .

The project to pack. It's either a path to a csproj file or to a directory. If omitted, it defaults to the current directory.

[Pure] - public static DotNetBuildSettings ResetProjectFile(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetProject(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ProjectFile = null; + toolSettings.Project = null; return toolSettings; } #endregion #region Configuration - ///

Sets .

Defines the build configuration. If omitted, the build configuration defaults to Debug. Use Release build a Release configuration.

+ ///

Sets .

Configuration to use when building the project. If not specified, configuration defaults to Debug.

[Pure] - public static DotNetBuildSettings SetConfiguration(this DotNetBuildSettings toolSettings, string configuration) + public static DotNetPackSettings SetConfiguration(this DotNetPackSettings toolSettings, string configuration) { toolSettings = toolSettings.NewInstance(); toolSettings.Configuration = configuration; return toolSettings; } - ///

Resets .

Defines the build configuration. If omitted, the build configuration defaults to Debug. Use Release build a Release configuration.

+ ///

Resets .

Configuration to use when building the project. If not specified, configuration defaults to Debug.

[Pure] - public static DotNetBuildSettings ResetConfiguration(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetConfiguration(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Configuration = null; return toolSettings; } #endregion - #region Framework - ///

Sets .

Compiles for a specific framework. The framework must be defined in the project file.

+ #region IncludeSource + ///

Sets .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

[Pure] - public static DotNetBuildSettings SetFramework(this DotNetBuildSettings toolSettings, string framework) + public static DotNetPackSettings SetIncludeSource(this DotNetPackSettings toolSettings, bool? includeSource) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = framework; + toolSettings.IncludeSource = includeSource; return toolSettings; } - ///

Resets .

Compiles for a specific framework. The framework must be defined in the project file.

+ ///

Resets .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

[Pure] - public static DotNetBuildSettings ResetFramework(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetIncludeSource(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = null; + toolSettings.IncludeSource = null; return toolSettings; } - #endregion - #region NoIncremental - ///

Sets .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ ///

Enables .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

[Pure] - public static DotNetBuildSettings SetNoIncremental(this DotNetBuildSettings toolSettings, bool? noIncremental) + public static DotNetPackSettings EnableIncludeSource(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoIncremental = noIncremental; + toolSettings.IncludeSource = true; return toolSettings; } - ///

Resets .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ ///

Disables .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

[Pure] - public static DotNetBuildSettings ResetNoIncremental(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableIncludeSource(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoIncremental = null; + toolSettings.IncludeSource = false; return toolSettings; } - ///

Enables .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ ///

Toggles .

Includes the source files in the NuGet package. The sources files are included in the src folder within the nupkg.

[Pure] - public static DotNetBuildSettings EnableNoIncremental(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleIncludeSource(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoIncremental = true; + toolSettings.IncludeSource = !toolSettings.IncludeSource; return toolSettings; } - ///

Disables .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ #endregion + #region IncludeSymbols + ///

Sets .

Generates the symbols nupkg.

[Pure] - public static DotNetBuildSettings DisableNoIncremental(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings SetIncludeSymbols(this DotNetPackSettings toolSettings, bool? includeSymbols) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoIncremental = false; + toolSettings.IncludeSymbols = includeSymbols; return toolSettings; } - ///

Toggles .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ ///

Resets .

Generates the symbols nupkg.

[Pure] - public static DotNetBuildSettings ToggleNoIncremental(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetIncludeSymbols(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoIncremental = !toolSettings.NoIncremental; + toolSettings.IncludeSymbols = null; return toolSettings; } - #endregion - #region NoRestore - ///

Sets .

Doesn't perform an implicit restore during build.

+ ///

Enables .

Generates the symbols nupkg.

[Pure] - public static DotNetBuildSettings SetNoRestore(this DotNetBuildSettings toolSettings, bool? noRestore) + public static DotNetPackSettings EnableIncludeSymbols(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = noRestore; + toolSettings.IncludeSymbols = true; return toolSettings; } - ///

Resets .

Doesn't perform an implicit restore during build.

+ ///

Disables .

Generates the symbols nupkg.

[Pure] - public static DotNetBuildSettings ResetNoRestore(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableIncludeSymbols(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = null; + toolSettings.IncludeSymbols = false; return toolSettings; } - ///

Enables .

Doesn't perform an implicit restore during build.

+ ///

Toggles .

Generates the symbols nupkg.

[Pure] - public static DotNetBuildSettings EnableNoRestore(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleIncludeSymbols(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = true; + toolSettings.IncludeSymbols = !toolSettings.IncludeSymbols; return toolSettings; } - ///

Disables .

Doesn't perform an implicit restore during build.

+ #endregion + #region NoBuild + ///

Sets .

Don't build the project before packing.

[Pure] - public static DotNetBuildSettings DisableNoRestore(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings SetNoBuild(this DotNetPackSettings toolSettings, bool? noBuild) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = noBuild; + return toolSettings; + } + ///

Resets .

Don't build the project before packing.

+ [Pure] + public static DotNetPackSettings ResetNoBuild(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = null; + return toolSettings; + } + ///

Enables .

Don't build the project before packing.

+ [Pure] + public static DotNetPackSettings EnableNoBuild(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = true; + return toolSettings; + } + ///

Disables .

Don't build the project before packing.

+ [Pure] + public static DotNetPackSettings DisableNoBuild(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = false; + return toolSettings; + } + ///

Toggles .

Don't build the project before packing.

+ [Pure] + public static DotNetPackSettings ToggleNoBuild(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = !toolSettings.NoBuild; + return toolSettings; + } + #endregion + #region NoRestore + ///

Sets .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPackSettings SetNoRestore(this DotNetPackSettings toolSettings, bool? noRestore) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = noRestore; + return toolSettings; + } + ///

Resets .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPackSettings ResetNoRestore(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = null; + return toolSettings; + } + ///

Enables .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPackSettings EnableNoRestore(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = true; + return toolSettings; + } + ///

Disables .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPackSettings DisableNoRestore(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoRestore = false; return toolSettings; } - ///

Toggles .

Doesn't perform an implicit restore during build.

+ ///

Toggles .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetBuildSettings ToggleNoRestore(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleNoRestore(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoRestore = !toolSettings.NoRestore; @@ -4925,71 +4989,95 @@ public static DotNetBuildSettings ToggleNoRestore(this DotNetBuildSettings toolS } #endregion #region OutputDirectory - ///

Sets .

Directory in which to place the built binaries. You also need to define --framework when you specify this option.

+ ///

Sets .

Places the built packages in the directory specified.

[Pure] - public static DotNetBuildSettings SetOutputDirectory(this DotNetBuildSettings toolSettings, string outputDirectory) + public static DotNetPackSettings SetOutputDirectory(this DotNetPackSettings toolSettings, string outputDirectory) { toolSettings = toolSettings.NewInstance(); toolSettings.OutputDirectory = outputDirectory; return toolSettings; } - ///

Resets .

Directory in which to place the built binaries. You also need to define --framework when you specify this option.

+ ///

Resets .

Places the built packages in the directory specified.

[Pure] - public static DotNetBuildSettings ResetOutputDirectory(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetOutputDirectory(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.OutputDirectory = null; return toolSettings; } #endregion - #region Runtime - ///

Sets .

Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog.

+ #region Serviceable + ///

Sets .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

[Pure] - public static DotNetBuildSettings SetRuntime(this DotNetBuildSettings toolSettings, string runtime) + public static DotNetPackSettings SetServiceable(this DotNetPackSettings toolSettings, bool? serviceable) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = runtime; + toolSettings.Serviceable = serviceable; return toolSettings; } - ///

Resets .

Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog.

+ ///

Resets .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

[Pure] - public static DotNetBuildSettings ResetRuntime(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetServiceable(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = null; + toolSettings.Serviceable = null; + return toolSettings; + } + ///

Enables .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ [Pure] + public static DotNetPackSettings EnableServiceable(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Serviceable = true; + return toolSettings; + } + ///

Disables .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ [Pure] + public static DotNetPackSettings DisableServiceable(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Serviceable = false; + return toolSettings; + } + ///

Toggles .

Sets the serviceable flag in the package. For more information, see .NET Blog: .NET 4.5.1 Supports Microsoft Security Updates for .NET NuGet Libraries.

+ [Pure] + public static DotNetPackSettings ToggleServiceable(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Serviceable = !toolSettings.Serviceable; return toolSettings; } #endregion - #region Verbosity - ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ #region Verbostiy + ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

[Pure] - public static DotNetBuildSettings SetVerbosity(this DotNetBuildSettings toolSettings, DotNetVerbosity verbosity) + public static DotNetPackSettings SetVerbostiy(this DotNetPackSettings toolSettings, DotNetVerbosity verbostiy) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = verbosity; + toolSettings.Verbostiy = verbostiy; return toolSettings; } - ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

[Pure] - public static DotNetBuildSettings ResetVerbosity(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetVerbostiy(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = null; + toolSettings.Verbostiy = null; return toolSettings; } #endregion #region VersionSuffix - ///

Sets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ ///

Sets .

Defines the value for the $(VersionSuffix) MSBuild property in the project.

[Pure] - public static DotNetBuildSettings SetVersionSuffix(this DotNetBuildSettings toolSettings, string versionSuffix) + public static DotNetPackSettings SetVersionSuffix(this DotNetPackSettings toolSettings, string versionSuffix) { toolSettings = toolSettings.NewInstance(); toolSettings.VersionSuffix = versionSuffix; return toolSettings; } - ///

Resets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ ///

Resets .

Defines the value for the $(VersionSuffix) MSBuild property in the project.

[Pure] - public static DotNetBuildSettings ResetVersionSuffix(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetVersionSuffix(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.VersionSuffix = null; @@ -4997,41 +5085,41 @@ public static DotNetBuildSettings ResetVersionSuffix(this DotNetBuildSettings to } #endregion #region DisableParallel - ///

Sets .

Disables restoring multiple projects in parallel.

+ ///

Sets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetBuildSettings SetDisableParallel(this DotNetBuildSettings toolSettings, bool? disableParallel) + public static DotNetPackSettings SetDisableParallel(this DotNetPackSettings toolSettings, bool? disableParallel) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = disableParallel; return toolSettings; } - ///

Resets .

Disables restoring multiple projects in parallel.

+ ///

Resets .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetBuildSettings ResetDisableParallel(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetDisableParallel(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = null; return toolSettings; } - ///

Enables .

Disables restoring multiple projects in parallel.

+ ///

Enables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetBuildSettings EnableDisableParallel(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableDisableParallel(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = true; return toolSettings; } - ///

Disables .

Disables restoring multiple projects in parallel.

+ ///

Disables .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetBuildSettings DisableDisableParallel(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableDisableParallel(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = false; return toolSettings; } - ///

Toggles .

Disables restoring multiple projects in parallel.

+ ///

Toggles .

Disables restoring multiple projects in parallel.

[Pure] - public static DotNetBuildSettings ToggleDisableParallel(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleDisableParallel(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.DisableParallel = !toolSettings.DisableParallel; @@ -5039,41 +5127,41 @@ public static DotNetBuildSettings ToggleDisableParallel(this DotNetBuildSettings } #endregion #region Force - ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetBuildSettings SetForce(this DotNetBuildSettings toolSettings, bool? force) + public static DotNetPackSettings SetForce(this DotNetPackSettings toolSettings, bool? force) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = force; return toolSettings; } - ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetBuildSettings ResetForce(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetForce(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = null; return toolSettings; } - ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetBuildSettings EnableForce(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableForce(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = true; return toolSettings; } - ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetBuildSettings DisableForce(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableForce(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = false; return toolSettings; } - ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetBuildSettings ToggleForce(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleForce(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Force = !toolSettings.Force; @@ -5081,41 +5169,41 @@ public static DotNetBuildSettings ToggleForce(this DotNetBuildSettings toolSetti } #endregion #region IgnoreFailedSources - ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetBuildSettings SetIgnoreFailedSources(this DotNetBuildSettings toolSettings, bool? ignoreFailedSources) + public static DotNetPackSettings SetIgnoreFailedSources(this DotNetPackSettings toolSettings, bool? ignoreFailedSources) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = ignoreFailedSources; return toolSettings; } - ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetBuildSettings ResetIgnoreFailedSources(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetIgnoreFailedSources(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = null; return toolSettings; } - ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetBuildSettings EnableIgnoreFailedSources(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableIgnoreFailedSources(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = true; return toolSettings; } - ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetBuildSettings DisableIgnoreFailedSources(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableIgnoreFailedSources(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = false; return toolSettings; } - ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetBuildSettings ToggleIgnoreFailedSources(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleIgnoreFailedSources(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; @@ -5123,41 +5211,41 @@ public static DotNetBuildSettings ToggleIgnoreFailedSources(this DotNetBuildSett } #endregion #region NoCache - ///

Sets .

Specifies to not cache packages and HTTP requests.

+ ///

Sets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetBuildSettings SetNoCache(this DotNetBuildSettings toolSettings, bool? noCache) + public static DotNetPackSettings SetNoCache(this DotNetPackSettings toolSettings, bool? noCache) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = noCache; return toolSettings; } - ///

Resets .

Specifies to not cache packages and HTTP requests.

+ ///

Resets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetBuildSettings ResetNoCache(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetNoCache(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = null; return toolSettings; } - ///

Enables .

Specifies to not cache packages and HTTP requests.

+ ///

Enables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetBuildSettings EnableNoCache(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableNoCache(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = true; return toolSettings; } - ///

Disables .

Specifies to not cache packages and HTTP requests.

+ ///

Disables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetBuildSettings DisableNoCache(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableNoCache(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = false; return toolSettings; } - ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ ///

Toggles .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetBuildSettings ToggleNoCache(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleNoCache(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoCache = !toolSettings.NoCache; @@ -5165,41 +5253,41 @@ public static DotNetBuildSettings ToggleNoCache(this DotNetBuildSettings toolSet } #endregion #region NoDependencies - ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetBuildSettings SetNoDependencies(this DotNetBuildSettings toolSettings, bool? noDependencies) + public static DotNetPackSettings SetNoDependencies(this DotNetPackSettings toolSettings, bool? noDependencies) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = noDependencies; return toolSettings; } - ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetBuildSettings ResetNoDependencies(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetNoDependencies(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = null; return toolSettings; } - ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetBuildSettings EnableNoDependencies(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableNoDependencies(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = true; return toolSettings; } - ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetBuildSettings DisableNoDependencies(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableNoDependencies(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = false; return toolSettings; } - ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetBuildSettings ToggleNoDependencies(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleNoDependencies(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.NoDependencies = !toolSettings.NoDependencies; @@ -5207,17 +5295,17 @@ public static DotNetBuildSettings ToggleNoDependencies(this DotNetBuildSettings } #endregion #region PackageDirectory - ///

Sets .

Specifies the directory for restored packages.

+ ///

Sets .

Specifies the directory for restored packages.

[Pure] - public static DotNetBuildSettings SetPackageDirectory(this DotNetBuildSettings toolSettings, string packageDirectory) + public static DotNetPackSettings SetPackageDirectory(this DotNetPackSettings toolSettings, string packageDirectory) { toolSettings = toolSettings.NewInstance(); toolSettings.PackageDirectory = packageDirectory; return toolSettings; } - ///

Resets .

Specifies the directory for restored packages.

+ ///

Resets .

Specifies the directory for restored packages.

[Pure] - public static DotNetBuildSettings ResetPackageDirectory(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetPackageDirectory(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PackageDirectory = null; @@ -5225,58 +5313,58 @@ public static DotNetBuildSettings ResetPackageDirectory(this DotNetBuildSettings } #endregion #region Sources - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings SetSources(this DotNetBuildSettings toolSettings, params string[] sources) + public static DotNetPackSettings SetSources(this DotNetPackSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings SetSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + public static DotNetPackSettings SetSources(this DotNetPackSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings AddSources(this DotNetBuildSettings toolSettings, params string[] sources) + public static DotNetPackSettings AddSources(this DotNetPackSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings AddSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + public static DotNetPackSettings AddSources(this DotNetPackSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings ClearSources(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ClearSources(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.SourcesInternal.Clear(); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings RemoveSources(this DotNetBuildSettings toolSettings, params string[] sources) + public static DotNetPackSettings RemoveSources(this DotNetPackSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet(sources); toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetBuildSettings RemoveSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + public static DotNetPackSettings RemoveSources(this DotNetPackSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); var hashSet = new HashSet(sources); @@ -5285,41 +5373,41 @@ public static DotNetBuildSettings RemoveSources(this DotNetBuildSettings toolSet } #endregion #region UseLockFile - ///

Sets .

Enables project lock file to be generated and used with restore.

+ ///

Sets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetBuildSettings SetUseLockFile(this DotNetBuildSettings toolSettings, bool? useLockFile) + public static DotNetPackSettings SetUseLockFile(this DotNetPackSettings toolSettings, bool? useLockFile) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = useLockFile; return toolSettings; } - ///

Resets .

Enables project lock file to be generated and used with restore.

+ ///

Resets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetBuildSettings ResetUseLockFile(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetUseLockFile(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = null; return toolSettings; } - ///

Enables .

Enables project lock file to be generated and used with restore.

+ ///

Enables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetBuildSettings EnableUseLockFile(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableUseLockFile(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = true; return toolSettings; } - ///

Disables .

Enables project lock file to be generated and used with restore.

+ ///

Disables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetBuildSettings DisableUseLockFile(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableUseLockFile(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = false; return toolSettings; } - ///

Toggles .

Enables project lock file to be generated and used with restore.

+ ///

Toggles .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetBuildSettings ToggleUseLockFile(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleUseLockFile(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.UseLockFile = !toolSettings.UseLockFile; @@ -5327,41 +5415,41 @@ public static DotNetBuildSettings ToggleUseLockFile(this DotNetBuildSettings too } #endregion #region LockedMode - ///

Sets .

Don't allow updating project lock file.

+ ///

Sets .

Don't allow updating project lock file.

[Pure] - public static DotNetBuildSettings SetLockedMode(this DotNetBuildSettings toolSettings, bool? lockedMode) + public static DotNetPackSettings SetLockedMode(this DotNetPackSettings toolSettings, bool? lockedMode) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = lockedMode; return toolSettings; } - ///

Resets .

Don't allow updating project lock file.

+ ///

Resets .

Don't allow updating project lock file.

[Pure] - public static DotNetBuildSettings ResetLockedMode(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetLockedMode(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = null; return toolSettings; } - ///

Enables .

Don't allow updating project lock file.

+ ///

Enables .

Don't allow updating project lock file.

[Pure] - public static DotNetBuildSettings EnableLockedMode(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableLockedMode(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = true; return toolSettings; } - ///

Disables .

Don't allow updating project lock file.

+ ///

Disables .

Don't allow updating project lock file.

[Pure] - public static DotNetBuildSettings DisableLockedMode(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableLockedMode(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = false; return toolSettings; } - ///

Toggles .

Don't allow updating project lock file.

+ ///

Toggles .

Don't allow updating project lock file.

[Pure] - public static DotNetBuildSettings ToggleLockedMode(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleLockedMode(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockedMode = !toolSettings.LockedMode; @@ -5369,17 +5457,17 @@ public static DotNetBuildSettings ToggleLockedMode(this DotNetBuildSettings tool } #endregion #region LockFilePath - ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetBuildSettings SetLockFilePath(this DotNetBuildSettings toolSettings, string lockFilePath) + public static DotNetPackSettings SetLockFilePath(this DotNetPackSettings toolSettings, string lockFilePath) { toolSettings = toolSettings.NewInstance(); toolSettings.LockFilePath = lockFilePath; return toolSettings; } - ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetBuildSettings ResetLockFilePath(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetLockFilePath(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.LockFilePath = null; @@ -5387,124 +5475,142 @@ public static DotNetBuildSettings ResetLockFilePath(this DotNetBuildSettings too } #endregion #region ForceEvaluate - ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetBuildSettings SetForceEvaluate(this DotNetBuildSettings toolSettings, bool? forceEvaluate) + public static DotNetPackSettings SetForceEvaluate(this DotNetPackSettings toolSettings, bool? forceEvaluate) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = forceEvaluate; return toolSettings; } - ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetBuildSettings ResetForceEvaluate(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetForceEvaluate(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = null; return toolSettings; } - ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetBuildSettings EnableForceEvaluate(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableForceEvaluate(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = true; return toolSettings; } - ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetBuildSettings DisableForceEvaluate(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableForceEvaluate(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = false; return toolSettings; } - ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetBuildSettings ToggleForceEvaluate(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleForceEvaluate(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; return toolSettings; } #endregion + #region Runtime + ///

Sets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ [Pure] + public static DotNetPackSettings SetRuntime(this DotNetPackSettings toolSettings, string runtime) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = runtime; + return toolSettings; + } + ///

Resets .

Specifies a runtime for the package restore. This is used to restore packages for runtimes not explicitly listed in the <RuntimeIdentifiers> tag in the .csproj file. For a list of Runtime Identifiers (RIDs), see the RID catalog. Provide multiple RIDs by specifying this option multiple times.

+ [Pure] + public static DotNetPackSettings ResetRuntime(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = null; + return toolSettings; + } + #endregion #region Properties - ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetProperties(this DotNetBuildSettings toolSettings, IDictionary properties) + public static DotNetPackSettings SetProperties(this DotNetPackSettings toolSettings, IDictionary properties) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); return toolSettings; } - ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ClearProperties(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ClearProperties(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Clear(); return toolSettings; } - ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings AddProperty(this DotNetBuildSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetPackSettings AddProperty(this DotNetPackSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); return toolSettings; } - ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings RemoveProperty(this DotNetBuildSettings toolSettings, string propertyKey) + public static DotNetPackSettings RemoveProperty(this DotNetPackSettings toolSettings, string propertyKey) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove(propertyKey); return toolSettings; } - ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetProperty(this DotNetBuildSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetPackSettings SetProperty(this DotNetPackSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal[propertyKey] = propertyValue; return toolSettings; } #region RunCodeAnalysis - ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetRunCodeAnalysis(this DotNetBuildSettings toolSettings, bool? runCodeAnalysis) + public static DotNetPackSettings SetRunCodeAnalysis(this DotNetPackSettings toolSettings, bool? runCodeAnalysis) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; return toolSettings; } - ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetRunCodeAnalysis(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetRunCodeAnalysis(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); return toolSettings; } - ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings EnableRunCodeAnalysis(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableRunCodeAnalysis(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; return toolSettings; } - ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings DisableRunCodeAnalysis(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableRunCodeAnalysis(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; return toolSettings; } - ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ToggleRunCodeAnalysis(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleRunCodeAnalysis(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); @@ -5512,57 +5618,57 @@ public static DotNetBuildSettings ToggleRunCodeAnalysis(this DotNetBuildSettings } #endregion #region NoWarn - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + public static DotNetPackSettings SetNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + public static DotNetPackSettings SetNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings AddNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + public static DotNetPackSettings AddNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings AddNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + public static DotNetPackSettings AddNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ClearNoWarns(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ClearNoWarns(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("NoWarn"); return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings RemoveNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + public static DotNetPackSettings RemoveNoWarns(this DotNetPackSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings RemoveNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + public static DotNetPackSettings RemoveNoWarns(this DotNetPackSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); @@ -5570,57 +5676,57 @@ public static DotNetBuildSettings RemoveNoWarns(this DotNetBuildSettings toolSet } #endregion #region WarningsAsErrors - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPackSettings SetWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPackSettings SetWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings AddWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPackSettings AddWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings AddWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPackSettings AddWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ClearWarningsAsErrors(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ClearWarningsAsErrors(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings RemoveWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPackSettings RemoveWarningsAsErrors(this DotNetPackSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings RemoveWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPackSettings RemoveWarningsAsErrors(this DotNetPackSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); @@ -5628,17 +5734,17 @@ public static DotNetBuildSettings RemoveWarningsAsErrors(this DotNetBuildSetting } #endregion #region WarningLevel - ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetWarningLevel(this DotNetBuildSettings toolSettings, int? warningLevel) + public static DotNetPackSettings SetWarningLevel(this DotNetPackSettings toolSettings, int? warningLevel) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; return toolSettings; } - ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetWarningLevel(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetWarningLevel(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("WarningLevel"); @@ -5646,41 +5752,41 @@ public static DotNetBuildSettings ResetWarningLevel(this DotNetBuildSettings too } #endregion #region TreatWarningsAsErrors - ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetTreatWarningsAsErrors(this DotNetBuildSettings toolSettings, bool? treatWarningsAsErrors) + public static DotNetPackSettings SetTreatWarningsAsErrors(this DotNetPackSettings toolSettings, bool? treatWarningsAsErrors) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; return toolSettings; } - ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetTreatWarningsAsErrors(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); return toolSettings; } - ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings EnableTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings EnableTreatWarningsAsErrors(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; return toolSettings; } - ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings DisableTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings DisableTreatWarningsAsErrors(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; return toolSettings; } - ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ToggleTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ToggleTreatWarningsAsErrors(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); @@ -5688,17 +5794,17 @@ public static DotNetBuildSettings ToggleTreatWarningsAsErrors(this DotNetBuildSe } #endregion #region AssemblyVersion - ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetAssemblyVersion(this DotNetBuildSettings toolSettings, string assemblyVersion) + public static DotNetPackSettings SetAssemblyVersion(this DotNetPackSettings toolSettings, string assemblyVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; return toolSettings; } - ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetAssemblyVersion(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetAssemblyVersion(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("AssemblyVersion"); @@ -5706,17 +5812,17 @@ public static DotNetBuildSettings ResetAssemblyVersion(this DotNetBuildSettings } #endregion #region FileVersion - ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetFileVersion(this DotNetBuildSettings toolSettings, string fileVersion) + public static DotNetPackSettings SetFileVersion(this DotNetPackSettings toolSettings, string fileVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["FileVersion"] = fileVersion; return toolSettings; } - ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetFileVersion(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetFileVersion(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("FileVersion"); @@ -5724,1160 +5830,3934 @@ public static DotNetBuildSettings ResetFileVersion(this DotNetBuildSettings tool } #endregion #region InformationalVersion - ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings SetInformationalVersion(this DotNetBuildSettings toolSettings, string informationalVersion) + public static DotNetPackSettings SetInformationalVersion(this DotNetPackSettings toolSettings, string informationalVersion) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; return toolSettings; } - ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetBuildSettings ResetInformationalVersion(this DotNetBuildSettings toolSettings) + public static DotNetPackSettings ResetInformationalVersion(this DotNetPackSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.PropertiesInternal.Remove("InformationalVersion"); return toolSettings; } #endregion - #endregion - } - #endregion - #region DotNetCleanSettingsExtensions + #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageId(this DotNetPackSettings toolSettings, string packageId) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageId"] = packageId; + return toolSettings; + } + ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageId(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageId"); + return toolSettings; + } + #endregion + #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetVersion(this DotNetPackSettings toolSettings, string version) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Version"] = version; + return toolSettings; + } + ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetVersion(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Version"); + return toolSettings; + } + #endregion + #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetVersionPrefix(this DotNetPackSettings toolSettings, string versionPrefix) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; + return toolSettings; + } + ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetVersionPrefix(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("VersionPrefix"); + return toolSettings; + } + #endregion + #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetAuthors(this DotNetPackSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings AddAuthors(this DotNetPackSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings AddAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ClearAuthors(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Authors"); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings RemoveAuthors(this DotNetPackSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings RemoveAuthors(this DotNetPackSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + #endregion + #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetTitle(this DotNetPackSettings toolSettings, string title) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Title"] = title; + return toolSettings; + } + ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetTitle(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Title"); + return toolSettings; + } + #endregion + #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetDescription(this DotNetPackSettings toolSettings, string description) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Description"] = description; + return toolSettings; + } + ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetDescription(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Description"); + return toolSettings; + } + #endregion + #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetCopyright(this DotNetPackSettings toolSettings, string copyright) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Copyright"] = copyright; + return toolSettings; + } + ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetCopyright(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Copyright"); + return toolSettings; + } + #endregion + #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings, bool? packageRequireLicenseAcceptance) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; + return toolSettings; + } + ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); + return toolSettings; + } + ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings EnablePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; + return toolSettings; + } + ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings DisablePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; + return toolSettings; + } + ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings TogglePackageRequireLicenseAcceptance(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); + return toolSettings; + } + #endregion + #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageLicenseUrl(this DotNetPackSettings toolSettings, string packageLicenseUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; + return toolSettings; + } + ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageLicenseUrl(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); + return toolSettings; + } + #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageProjectUrl(this DotNetPackSettings toolSettings, string packageProjectUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; + return toolSettings; + } + ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageProjectUrl(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); + return toolSettings; + } + #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageIconUrl(this DotNetPackSettings toolSettings, string packageIconUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; + return toolSettings; + } + ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageIconUrl(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); + return toolSettings; + } + #endregion + #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings AddPackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings AddPackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ClearPackageTags(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageTags"); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings RemovePackageTags(this DotNetPackSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings RemovePackageTags(this DotNetPackSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + #endregion + #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetPackageReleaseNotes(this DotNetPackSettings toolSettings, string packageReleaseNotes) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; + return toolSettings; + } + ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetPackageReleaseNotes(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); + return toolSettings; + } + #endregion + #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetRepositoryUrl(this DotNetPackSettings toolSettings, string repositoryUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; + return toolSettings; + } + ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetRepositoryUrl(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); + return toolSettings; + } + #endregion + #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings SetRepositoryType(this DotNetPackSettings toolSettings, string repositoryType) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; + return toolSettings; + } + ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetPackSettings ResetRepositoryType(this DotNetPackSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryType"); + return toolSettings; + } + #endregion + #endregion + } + #endregion + #region DotNetBuildSettingsExtensions + ///

Used within .

+ [PublicAPI] + [ExcludeFromCodeCoverage] + public static partial class DotNetBuildSettingsExtensions + { + #region ProjectFile + ///

Sets .

The project file to build. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ [Pure] + public static DotNetBuildSettings SetProjectFile(this DotNetBuildSettings toolSettings, string projectFile) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ProjectFile = projectFile; + return toolSettings; + } + ///

Resets .

The project file to build. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ [Pure] + public static DotNetBuildSettings ResetProjectFile(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ProjectFile = null; + return toolSettings; + } + #endregion + #region Configuration + ///

Sets .

Defines the build configuration. If omitted, the build configuration defaults to Debug. Use Release build a Release configuration.

+ [Pure] + public static DotNetBuildSettings SetConfiguration(this DotNetBuildSettings toolSettings, string configuration) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = configuration; + return toolSettings; + } + ///

Resets .

Defines the build configuration. If omitted, the build configuration defaults to Debug. Use Release build a Release configuration.

+ [Pure] + public static DotNetBuildSettings ResetConfiguration(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = null; + return toolSettings; + } + #endregion + #region Framework + ///

Sets .

Compiles for a specific framework. The framework must be defined in the project file.

+ [Pure] + public static DotNetBuildSettings SetFramework(this DotNetBuildSettings toolSettings, string framework) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = framework; + return toolSettings; + } + ///

Resets .

Compiles for a specific framework. The framework must be defined in the project file.

+ [Pure] + public static DotNetBuildSettings ResetFramework(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = null; + return toolSettings; + } + #endregion + #region NoIncremental + ///

Sets .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ [Pure] + public static DotNetBuildSettings SetNoIncremental(this DotNetBuildSettings toolSettings, bool? noIncremental) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoIncremental = noIncremental; + return toolSettings; + } + ///

Resets .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ [Pure] + public static DotNetBuildSettings ResetNoIncremental(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoIncremental = null; + return toolSettings; + } + ///

Enables .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ [Pure] + public static DotNetBuildSettings EnableNoIncremental(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoIncremental = true; + return toolSettings; + } + ///

Disables .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ [Pure] + public static DotNetBuildSettings DisableNoIncremental(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoIncremental = false; + return toolSettings; + } + ///

Toggles .

Marks the build as unsafe for incremental build. This turns off incremental compilation and forces a clean rebuild of the project's dependency graph.

+ [Pure] + public static DotNetBuildSettings ToggleNoIncremental(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoIncremental = !toolSettings.NoIncremental; + return toolSettings; + } + #endregion + #region NoRestore + ///

Sets .

Doesn't perform an implicit restore during build.

+ [Pure] + public static DotNetBuildSettings SetNoRestore(this DotNetBuildSettings toolSettings, bool? noRestore) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = noRestore; + return toolSettings; + } + ///

Resets .

Doesn't perform an implicit restore during build.

+ [Pure] + public static DotNetBuildSettings ResetNoRestore(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = null; + return toolSettings; + } + ///

Enables .

Doesn't perform an implicit restore during build.

+ [Pure] + public static DotNetBuildSettings EnableNoRestore(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = true; + return toolSettings; + } + ///

Disables .

Doesn't perform an implicit restore during build.

+ [Pure] + public static DotNetBuildSettings DisableNoRestore(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = false; + return toolSettings; + } + ///

Toggles .

Doesn't perform an implicit restore during build.

+ [Pure] + public static DotNetBuildSettings ToggleNoRestore(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = !toolSettings.NoRestore; + return toolSettings; + } + #endregion + #region OutputDirectory + ///

Sets .

Directory in which to place the built binaries. You also need to define --framework when you specify this option.

+ [Pure] + public static DotNetBuildSettings SetOutputDirectory(this DotNetBuildSettings toolSettings, string outputDirectory) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.OutputDirectory = outputDirectory; + return toolSettings; + } + ///

Resets .

Directory in which to place the built binaries. You also need to define --framework when you specify this option.

+ [Pure] + public static DotNetBuildSettings ResetOutputDirectory(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.OutputDirectory = null; + return toolSettings; + } + #endregion + #region Runtime + ///

Sets .

Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog.

+ [Pure] + public static DotNetBuildSettings SetRuntime(this DotNetBuildSettings toolSettings, string runtime) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = runtime; + return toolSettings; + } + ///

Resets .

Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog.

+ [Pure] + public static DotNetBuildSettings ResetRuntime(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = null; + return toolSettings; + } + #endregion + #region Verbosity + ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetBuildSettings SetVerbosity(this DotNetBuildSettings toolSettings, DotNetVerbosity verbosity) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = verbosity; + return toolSettings; + } + ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetBuildSettings ResetVerbosity(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = null; + return toolSettings; + } + #endregion + #region VersionSuffix + ///

Sets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ [Pure] + public static DotNetBuildSettings SetVersionSuffix(this DotNetBuildSettings toolSettings, string versionSuffix) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.VersionSuffix = versionSuffix; + return toolSettings; + } + ///

Resets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ [Pure] + public static DotNetBuildSettings ResetVersionSuffix(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.VersionSuffix = null; + return toolSettings; + } + #endregion + #region DisableParallel + ///

Sets .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetBuildSettings SetDisableParallel(this DotNetBuildSettings toolSettings, bool? disableParallel) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = disableParallel; + return toolSettings; + } + ///

Resets .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetBuildSettings ResetDisableParallel(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = null; + return toolSettings; + } + ///

Enables .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetBuildSettings EnableDisableParallel(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = true; + return toolSettings; + } + ///

Disables .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetBuildSettings DisableDisableParallel(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = false; + return toolSettings; + } + ///

Toggles .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetBuildSettings ToggleDisableParallel(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = !toolSettings.DisableParallel; + return toolSettings; + } + #endregion + #region Force + ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetBuildSettings SetForce(this DotNetBuildSettings toolSettings, bool? force) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = force; + return toolSettings; + } + ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetBuildSettings ResetForce(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = null; + return toolSettings; + } + ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetBuildSettings EnableForce(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = true; + return toolSettings; + } + ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetBuildSettings DisableForce(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = false; + return toolSettings; + } + ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetBuildSettings ToggleForce(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = !toolSettings.Force; + return toolSettings; + } + #endregion + #region IgnoreFailedSources + ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

+ [Pure] + public static DotNetBuildSettings SetIgnoreFailedSources(this DotNetBuildSettings toolSettings, bool? ignoreFailedSources) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.IgnoreFailedSources = ignoreFailedSources; + return toolSettings; + } + ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ [Pure] + public static DotNetBuildSettings ResetIgnoreFailedSources(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.IgnoreFailedSources = null; + return toolSettings; + } + ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ [Pure] + public static DotNetBuildSettings EnableIgnoreFailedSources(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.IgnoreFailedSources = true; + return toolSettings; + } + ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ [Pure] + public static DotNetBuildSettings DisableIgnoreFailedSources(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.IgnoreFailedSources = false; + return toolSettings; + } + ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ [Pure] + public static DotNetBuildSettings ToggleIgnoreFailedSources(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; + return toolSettings; + } + #endregion + #region NoCache + ///

Sets .

Specifies to not cache packages and HTTP requests.

+ [Pure] + public static DotNetBuildSettings SetNoCache(this DotNetBuildSettings toolSettings, bool? noCache) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoCache = noCache; + return toolSettings; + } + ///

Resets .

Specifies to not cache packages and HTTP requests.

+ [Pure] + public static DotNetBuildSettings ResetNoCache(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoCache = null; + return toolSettings; + } + ///

Enables .

Specifies to not cache packages and HTTP requests.

+ [Pure] + public static DotNetBuildSettings EnableNoCache(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoCache = true; + return toolSettings; + } + ///

Disables .

Specifies to not cache packages and HTTP requests.

+ [Pure] + public static DotNetBuildSettings DisableNoCache(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoCache = false; + return toolSettings; + } + ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ [Pure] + public static DotNetBuildSettings ToggleNoCache(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoCache = !toolSettings.NoCache; + return toolSettings; + } + #endregion + #region NoDependencies + ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ [Pure] + public static DotNetBuildSettings SetNoDependencies(this DotNetBuildSettings toolSettings, bool? noDependencies) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoDependencies = noDependencies; + return toolSettings; + } + ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ [Pure] + public static DotNetBuildSettings ResetNoDependencies(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoDependencies = null; + return toolSettings; + } + ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ [Pure] + public static DotNetBuildSettings EnableNoDependencies(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoDependencies = true; + return toolSettings; + } + ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ [Pure] + public static DotNetBuildSettings DisableNoDependencies(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoDependencies = false; + return toolSettings; + } + ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ [Pure] + public static DotNetBuildSettings ToggleNoDependencies(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoDependencies = !toolSettings.NoDependencies; + return toolSettings; + } + #endregion + #region PackageDirectory + ///

Sets .

Specifies the directory for restored packages.

+ [Pure] + public static DotNetBuildSettings SetPackageDirectory(this DotNetBuildSettings toolSettings, string packageDirectory) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PackageDirectory = packageDirectory; + return toolSettings; + } + ///

Resets .

Specifies the directory for restored packages.

+ [Pure] + public static DotNetBuildSettings ResetPackageDirectory(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PackageDirectory = null; + return toolSettings; + } + #endregion + #region Sources + ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings SetSources(this DotNetBuildSettings toolSettings, params string[] sources) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SourcesInternal = sources.ToList(); + return toolSettings; + } + ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings SetSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SourcesInternal = sources.ToList(); + return toolSettings; + } + ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings AddSources(this DotNetBuildSettings toolSettings, params string[] sources) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SourcesInternal.AddRange(sources); + return toolSettings; + } + ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings AddSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SourcesInternal.AddRange(sources); + return toolSettings; + } + ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings ClearSources(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SourcesInternal.Clear(); + return toolSettings; + } + ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings RemoveSources(this DotNetBuildSettings toolSettings, params string[] sources) + { + toolSettings = toolSettings.NewInstance(); + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + return toolSettings; + } + ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ [Pure] + public static DotNetBuildSettings RemoveSources(this DotNetBuildSettings toolSettings, IEnumerable sources) + { + toolSettings = toolSettings.NewInstance(); + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + return toolSettings; + } + #endregion + #region UseLockFile + ///

Sets .

Enables project lock file to be generated and used with restore.

+ [Pure] + public static DotNetBuildSettings SetUseLockFile(this DotNetBuildSettings toolSettings, bool? useLockFile) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.UseLockFile = useLockFile; + return toolSettings; + } + ///

Resets .

Enables project lock file to be generated and used with restore.

+ [Pure] + public static DotNetBuildSettings ResetUseLockFile(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.UseLockFile = null; + return toolSettings; + } + ///

Enables .

Enables project lock file to be generated and used with restore.

+ [Pure] + public static DotNetBuildSettings EnableUseLockFile(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.UseLockFile = true; + return toolSettings; + } + ///

Disables .

Enables project lock file to be generated and used with restore.

+ [Pure] + public static DotNetBuildSettings DisableUseLockFile(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.UseLockFile = false; + return toolSettings; + } + ///

Toggles .

Enables project lock file to be generated and used with restore.

+ [Pure] + public static DotNetBuildSettings ToggleUseLockFile(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.UseLockFile = !toolSettings.UseLockFile; + return toolSettings; + } + #endregion + #region LockedMode + ///

Sets .

Don't allow updating project lock file.

+ [Pure] + public static DotNetBuildSettings SetLockedMode(this DotNetBuildSettings toolSettings, bool? lockedMode) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockedMode = lockedMode; + return toolSettings; + } + ///

Resets .

Don't allow updating project lock file.

+ [Pure] + public static DotNetBuildSettings ResetLockedMode(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockedMode = null; + return toolSettings; + } + ///

Enables .

Don't allow updating project lock file.

+ [Pure] + public static DotNetBuildSettings EnableLockedMode(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockedMode = true; + return toolSettings; + } + ///

Disables .

Don't allow updating project lock file.

+ [Pure] + public static DotNetBuildSettings DisableLockedMode(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockedMode = false; + return toolSettings; + } + ///

Toggles .

Don't allow updating project lock file.

+ [Pure] + public static DotNetBuildSettings ToggleLockedMode(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockedMode = !toolSettings.LockedMode; + return toolSettings; + } + #endregion + #region LockFilePath + ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ [Pure] + public static DotNetBuildSettings SetLockFilePath(this DotNetBuildSettings toolSettings, string lockFilePath) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockFilePath = lockFilePath; + return toolSettings; + } + ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ [Pure] + public static DotNetBuildSettings ResetLockFilePath(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.LockFilePath = null; + return toolSettings; + } + #endregion + #region ForceEvaluate + ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ [Pure] + public static DotNetBuildSettings SetForceEvaluate(this DotNetBuildSettings toolSettings, bool? forceEvaluate) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ForceEvaluate = forceEvaluate; + return toolSettings; + } + ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ [Pure] + public static DotNetBuildSettings ResetForceEvaluate(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ForceEvaluate = null; + return toolSettings; + } + ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ [Pure] + public static DotNetBuildSettings EnableForceEvaluate(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ForceEvaluate = true; + return toolSettings; + } + ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ [Pure] + public static DotNetBuildSettings DisableForceEvaluate(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ForceEvaluate = false; + return toolSettings; + } + ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ [Pure] + public static DotNetBuildSettings ToggleForceEvaluate(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; + return toolSettings; + } + #endregion + #region Properties + ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetProperties(this DotNetBuildSettings toolSettings, IDictionary properties) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); + return toolSettings; + } + ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ClearProperties(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Clear(); + return toolSettings; + } + ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddProperty(this DotNetBuildSettings toolSettings, string propertyKey, object propertyValue) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); + return toolSettings; + } + ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveProperty(this DotNetBuildSettings toolSettings, string propertyKey) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove(propertyKey); + return toolSettings; + } + ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetProperty(this DotNetBuildSettings toolSettings, string propertyKey, object propertyValue) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal[propertyKey] = propertyValue; + return toolSettings; + } + #region RunCodeAnalysis + ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetRunCodeAnalysis(this DotNetBuildSettings toolSettings, bool? runCodeAnalysis) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; + return toolSettings; + } + ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetRunCodeAnalysis(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); + return toolSettings; + } + ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings EnableRunCodeAnalysis(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; + return toolSettings; + } + ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings DisableRunCodeAnalysis(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; + return toolSettings; + } + ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ToggleRunCodeAnalysis(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); + return toolSettings; + } + #endregion + #region NoWarn + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ClearNoWarns(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("NoWarn"); + return toolSettings; + } + ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveNoWarns(this DotNetBuildSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveNoWarns(this DotNetBuildSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + #endregion + #region WarningsAsErrors + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ClearWarningsAsErrors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); + return toolSettings; + } + ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveWarningsAsErrors(this DotNetBuildSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveWarningsAsErrors(this DotNetBuildSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + #endregion + #region WarningLevel + ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetWarningLevel(this DotNetBuildSettings toolSettings, int? warningLevel) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; + return toolSettings; + } + ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetWarningLevel(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("WarningLevel"); + return toolSettings; + } + #endregion + #region TreatWarningsAsErrors + ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetTreatWarningsAsErrors(this DotNetBuildSettings toolSettings, bool? treatWarningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; + return toolSettings; + } + ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); + return toolSettings; + } + ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings EnableTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; + return toolSettings; + } + ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings DisableTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; + return toolSettings; + } + ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ToggleTreatWarningsAsErrors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); + return toolSettings; + } + #endregion + #region AssemblyVersion + ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetAssemblyVersion(this DotNetBuildSettings toolSettings, string assemblyVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; + return toolSettings; + } + ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetAssemblyVersion(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("AssemblyVersion"); + return toolSettings; + } + #endregion + #region FileVersion + ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetFileVersion(this DotNetBuildSettings toolSettings, string fileVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["FileVersion"] = fileVersion; + return toolSettings; + } + ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetFileVersion(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("FileVersion"); + return toolSettings; + } + #endregion + #region InformationalVersion + ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetInformationalVersion(this DotNetBuildSettings toolSettings, string informationalVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; + return toolSettings; + } + ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetInformationalVersion(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("InformationalVersion"); + return toolSettings; + } + #endregion + #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageId(this DotNetBuildSettings toolSettings, string packageId) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageId"] = packageId; + return toolSettings; + } + ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageId(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageId"); + return toolSettings; + } + #endregion + #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetVersion(this DotNetBuildSettings toolSettings, string version) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Version"] = version; + return toolSettings; + } + ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetVersion(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Version"); + return toolSettings; + } + #endregion + #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetVersionPrefix(this DotNetBuildSettings toolSettings, string versionPrefix) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; + return toolSettings; + } + ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetVersionPrefix(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("VersionPrefix"); + return toolSettings; + } + #endregion + #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetAuthors(this DotNetBuildSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetAuthors(this DotNetBuildSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddAuthors(this DotNetBuildSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddAuthors(this DotNetBuildSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ClearAuthors(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Authors"); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveAuthors(this DotNetBuildSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemoveAuthors(this DotNetBuildSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + #endregion + #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetTitle(this DotNetBuildSettings toolSettings, string title) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Title"] = title; + return toolSettings; + } + ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetTitle(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Title"); + return toolSettings; + } + #endregion + #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetDescription(this DotNetBuildSettings toolSettings, string description) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Description"] = description; + return toolSettings; + } + ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetDescription(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Description"); + return toolSettings; + } + #endregion + #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetCopyright(this DotNetBuildSettings toolSettings, string copyright) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Copyright"] = copyright; + return toolSettings; + } + ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetCopyright(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Copyright"); + return toolSettings; + } + #endregion + #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageRequireLicenseAcceptance(this DotNetBuildSettings toolSettings, bool? packageRequireLicenseAcceptance) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; + return toolSettings; + } + ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageRequireLicenseAcceptance(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); + return toolSettings; + } + ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings EnablePackageRequireLicenseAcceptance(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; + return toolSettings; + } + ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings DisablePackageRequireLicenseAcceptance(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; + return toolSettings; + } + ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings TogglePackageRequireLicenseAcceptance(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); + return toolSettings; + } + #endregion + #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageLicenseUrl(this DotNetBuildSettings toolSettings, string packageLicenseUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; + return toolSettings; + } + ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageLicenseUrl(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); + return toolSettings; + } + #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageProjectUrl(this DotNetBuildSettings toolSettings, string packageProjectUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; + return toolSettings; + } + ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageProjectUrl(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); + return toolSettings; + } + #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageIconUrl(this DotNetBuildSettings toolSettings, string packageIconUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; + return toolSettings; + } + ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageIconUrl(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); + return toolSettings; + } + #endregion + #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageTags(this DotNetBuildSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageTags(this DotNetBuildSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddPackageTags(this DotNetBuildSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings AddPackageTags(this DotNetBuildSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ClearPackageTags(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageTags"); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemovePackageTags(this DotNetBuildSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings RemovePackageTags(this DotNetBuildSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + #endregion + #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetPackageReleaseNotes(this DotNetBuildSettings toolSettings, string packageReleaseNotes) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; + return toolSettings; + } + ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetPackageReleaseNotes(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); + return toolSettings; + } + #endregion + #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetRepositoryUrl(this DotNetBuildSettings toolSettings, string repositoryUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; + return toolSettings; + } + ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetRepositoryUrl(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); + return toolSettings; + } + #endregion + #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings SetRepositoryType(this DotNetBuildSettings toolSettings, string repositoryType) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; + return toolSettings; + } + ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetBuildSettings ResetRepositoryType(this DotNetBuildSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryType"); + return toolSettings; + } + #endregion + #endregion + } + #endregion + #region DotNetCleanSettingsExtensions + ///

Used within .

+ [PublicAPI] + [ExcludeFromCodeCoverage] + public static partial class DotNetCleanSettingsExtensions + { + #region Project + ///

Sets .

The MSBuild project to clean. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ [Pure] + public static DotNetCleanSettings SetProject(this DotNetCleanSettings toolSettings, string project) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Project = project; + return toolSettings; + } + ///

Resets .

The MSBuild project to clean. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ [Pure] + public static DotNetCleanSettings ResetProject(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Project = null; + return toolSettings; + } + #endregion + #region Configuration + ///

Sets .

Defines the build configuration. The default value is Debug. This option is only required when cleaning if you specified it during build time.

+ [Pure] + public static DotNetCleanSettings SetConfiguration(this DotNetCleanSettings toolSettings, string configuration) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = configuration; + return toolSettings; + } + ///

Resets .

Defines the build configuration. The default value is Debug. This option is only required when cleaning if you specified it during build time.

+ [Pure] + public static DotNetCleanSettings ResetConfiguration(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = null; + return toolSettings; + } + #endregion + #region Framework + ///

Sets .

The framework that was specified at build time. The framework must be defined in the project file. If you specified the framework at build time, you must specify the framework when cleaning.

+ [Pure] + public static DotNetCleanSettings SetFramework(this DotNetCleanSettings toolSettings, string framework) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = framework; + return toolSettings; + } + ///

Resets .

The framework that was specified at build time. The framework must be defined in the project file. If you specified the framework at build time, you must specify the framework when cleaning.

+ [Pure] + public static DotNetCleanSettings ResetFramework(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = null; + return toolSettings; + } + #endregion + #region Output + ///

Sets .

Directory in which the build outputs are placed. Specify the --framework switch with the output directory switch if you specified the framework when the project was built.

+ [Pure] + public static DotNetCleanSettings SetOutput(this DotNetCleanSettings toolSettings, string output) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Output = output; + return toolSettings; + } + ///

Resets .

Directory in which the build outputs are placed. Specify the --framework switch with the output directory switch if you specified the framework when the project was built.

+ [Pure] + public static DotNetCleanSettings ResetOutput(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Output = null; + return toolSettings; + } + #endregion + #region Runtime + ///

Sets .

Cleans the output folder of the specified runtime. This is used when a self-contained deployment was created.

+ [Pure] + public static DotNetCleanSettings SetRuntime(this DotNetCleanSettings toolSettings, string runtime) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = runtime; + return toolSettings; + } + ///

Resets .

Cleans the output folder of the specified runtime. This is used when a self-contained deployment was created.

+ [Pure] + public static DotNetCleanSettings ResetRuntime(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = null; + return toolSettings; + } + #endregion + #region Verbosity + ///

Sets .

Sets the verbosity level of the command. Allowed levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetCleanSettings SetVerbosity(this DotNetCleanSettings toolSettings, DotNetVerbosity verbosity) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = verbosity; + return toolSettings; + } + ///

Resets .

Sets the verbosity level of the command. Allowed levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetCleanSettings ResetVerbosity(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = null; + return toolSettings; + } + #endregion + #region Properties + ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetProperties(this DotNetCleanSettings toolSettings, IDictionary properties) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); + return toolSettings; + } + ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ClearProperties(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Clear(); + return toolSettings; + } + ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddProperty(this DotNetCleanSettings toolSettings, string propertyKey, object propertyValue) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); + return toolSettings; + } + ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveProperty(this DotNetCleanSettings toolSettings, string propertyKey) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove(propertyKey); + return toolSettings; + } + ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetProperty(this DotNetCleanSettings toolSettings, string propertyKey, object propertyValue) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal[propertyKey] = propertyValue; + return toolSettings; + } + #region RunCodeAnalysis + ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetRunCodeAnalysis(this DotNetCleanSettings toolSettings, bool? runCodeAnalysis) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; + return toolSettings; + } + ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetRunCodeAnalysis(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); + return toolSettings; + } + ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings EnableRunCodeAnalysis(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; + return toolSettings; + } + ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings DisableRunCodeAnalysis(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; + return toolSettings; + } + ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ToggleRunCodeAnalysis(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); + return toolSettings; + } + #endregion + #region NoWarn + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetNoWarns(this DotNetCleanSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetNoWarns(this DotNetCleanSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddNoWarns(this DotNetCleanSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddNoWarns(this DotNetCleanSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ClearNoWarns(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("NoWarn"); + return toolSettings; + } + ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveNoWarns(this DotNetCleanSettings toolSettings, params int[] noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveNoWarns(this DotNetCleanSettings toolSettings, IEnumerable noWarn) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + return toolSettings; + } + #endregion + #region WarningsAsErrors + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetWarningsAsErrors(this DotNetCleanSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetWarningsAsErrors(this DotNetCleanSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddWarningsAsErrors(this DotNetCleanSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddWarningsAsErrors(this DotNetCleanSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ClearWarningsAsErrors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); + return toolSettings; + } + ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveWarningsAsErrors(this DotNetCleanSettings toolSettings, params int[] warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveWarningsAsErrors(this DotNetCleanSettings toolSettings, IEnumerable warningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + return toolSettings; + } + #endregion + #region WarningLevel + ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetWarningLevel(this DotNetCleanSettings toolSettings, int? warningLevel) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; + return toolSettings; + } + ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetWarningLevel(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("WarningLevel"); + return toolSettings; + } + #endregion + #region TreatWarningsAsErrors + ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetTreatWarningsAsErrors(this DotNetCleanSettings toolSettings, bool? treatWarningsAsErrors) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; + return toolSettings; + } + ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetTreatWarningsAsErrors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); + return toolSettings; + } + ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings EnableTreatWarningsAsErrors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; + return toolSettings; + } + ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings DisableTreatWarningsAsErrors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; + return toolSettings; + } + ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ToggleTreatWarningsAsErrors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); + return toolSettings; + } + #endregion + #region AssemblyVersion + ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetAssemblyVersion(this DotNetCleanSettings toolSettings, string assemblyVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; + return toolSettings; + } + ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetAssemblyVersion(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("AssemblyVersion"); + return toolSettings; + } + #endregion + #region FileVersion + ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetFileVersion(this DotNetCleanSettings toolSettings, string fileVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["FileVersion"] = fileVersion; + return toolSettings; + } + ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetFileVersion(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("FileVersion"); + return toolSettings; + } + #endregion + #region InformationalVersion + ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetInformationalVersion(this DotNetCleanSettings toolSettings, string informationalVersion) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; + return toolSettings; + } + ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetInformationalVersion(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("InformationalVersion"); + return toolSettings; + } + #endregion + #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageId(this DotNetCleanSettings toolSettings, string packageId) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageId"] = packageId; + return toolSettings; + } + ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageId(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageId"); + return toolSettings; + } + #endregion + #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetVersion(this DotNetCleanSettings toolSettings, string version) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Version"] = version; + return toolSettings; + } + ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetVersion(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Version"); + return toolSettings; + } + #endregion + #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetVersionPrefix(this DotNetCleanSettings toolSettings, string versionPrefix) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; + return toolSettings; + } + ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetVersionPrefix(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("VersionPrefix"); + return toolSettings; + } + #endregion + #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetAuthors(this DotNetCleanSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetAuthors(this DotNetCleanSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddAuthors(this DotNetCleanSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddAuthors(this DotNetCleanSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ClearAuthors(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Authors"); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveAuthors(this DotNetCleanSettings toolSettings, params string[] authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemoveAuthors(this DotNetCleanSettings toolSettings, IEnumerable authors) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); + return toolSettings; + } + #endregion + #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetTitle(this DotNetCleanSettings toolSettings, string title) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Title"] = title; + return toolSettings; + } + ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetTitle(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Title"); + return toolSettings; + } + #endregion + #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetDescription(this DotNetCleanSettings toolSettings, string description) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Description"] = description; + return toolSettings; + } + ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetDescription(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Description"); + return toolSettings; + } + #endregion + #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetCopyright(this DotNetCleanSettings toolSettings, string copyright) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["Copyright"] = copyright; + return toolSettings; + } + ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetCopyright(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("Copyright"); + return toolSettings; + } + #endregion + #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageRequireLicenseAcceptance(this DotNetCleanSettings toolSettings, bool? packageRequireLicenseAcceptance) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; + return toolSettings; + } + ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageRequireLicenseAcceptance(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); + return toolSettings; + } + ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings EnablePackageRequireLicenseAcceptance(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; + return toolSettings; + } + ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings DisablePackageRequireLicenseAcceptance(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; + return toolSettings; + } + ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings TogglePackageRequireLicenseAcceptance(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); + return toolSettings; + } + #endregion + #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageLicenseUrl(this DotNetCleanSettings toolSettings, string packageLicenseUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; + return toolSettings; + } + ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageLicenseUrl(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); + return toolSettings; + } + #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageProjectUrl(this DotNetCleanSettings toolSettings, string packageProjectUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; + return toolSettings; + } + ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageProjectUrl(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); + return toolSettings; + } + #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageIconUrl(this DotNetCleanSettings toolSettings, string packageIconUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; + return toolSettings; + } + ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageIconUrl(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); + return toolSettings; + } + #endregion + #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageTags(this DotNetCleanSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageTags(this DotNetCleanSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddPackageTags(this DotNetCleanSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings AddPackageTags(this DotNetCleanSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ClearPackageTags(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageTags"); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemovePackageTags(this DotNetCleanSettings toolSettings, params string[] packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings RemovePackageTags(this DotNetCleanSettings toolSettings, IEnumerable packageTags) + { + toolSettings = toolSettings.NewInstance(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); + return toolSettings; + } + #endregion + #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetPackageReleaseNotes(this DotNetCleanSettings toolSettings, string packageReleaseNotes) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; + return toolSettings; + } + ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetPackageReleaseNotes(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); + return toolSettings; + } + #endregion + #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetRepositoryUrl(this DotNetCleanSettings toolSettings, string repositoryUrl) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; + return toolSettings; + } + ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetRepositoryUrl(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); + return toolSettings; + } + #endregion + #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings SetRepositoryType(this DotNetCleanSettings toolSettings, string repositoryType) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; + return toolSettings; + } + ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ [Pure] + public static DotNetCleanSettings ResetRepositoryType(this DotNetCleanSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.PropertiesInternal.Remove("RepositoryType"); + return toolSettings; + } + #endregion + #endregion + } + #endregion + #region DotNetPublishSettingsExtensions ///

Used within .

[PublicAPI] [ExcludeFromCodeCoverage] - public static partial class DotNetCleanSettingsExtensions + public static partial class DotNetPublishSettingsExtensions { #region Project - ///

Sets .

The MSBuild project to clean. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ ///

Sets .

The project to publish, which defaults to the current directory if not specified.

+ [Pure] + public static DotNetPublishSettings SetProject(this DotNetPublishSettings toolSettings, string project) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Project = project; + return toolSettings; + } + ///

Resets .

The project to publish, which defaults to the current directory if not specified.

+ [Pure] + public static DotNetPublishSettings ResetProject(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Project = null; + return toolSettings; + } + #endregion + #region Configuration + ///

Sets .

Defines the build configuration. The default value is Debug.

+ [Pure] + public static DotNetPublishSettings SetConfiguration(this DotNetPublishSettings toolSettings, string configuration) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = configuration; + return toolSettings; + } + ///

Resets .

Defines the build configuration. The default value is Debug.

+ [Pure] + public static DotNetPublishSettings ResetConfiguration(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Configuration = null; + return toolSettings; + } + #endregion + #region Framework + ///

Sets .

Publishes the application for the specified target framework. You must specify the target framework in the project file.

+ [Pure] + public static DotNetPublishSettings SetFramework(this DotNetPublishSettings toolSettings, string framework) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = framework; + return toolSettings; + } + ///

Resets .

Publishes the application for the specified target framework. You must specify the target framework in the project file.

+ [Pure] + public static DotNetPublishSettings ResetFramework(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Framework = null; + return toolSettings; + } + #endregion + #region Manifest + ///

Sets .

Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. To specify multiple manifests, add a --manifest option for each manifest. This option is available starting with .NET Core 2.0 SDK.

[Pure] - public static DotNetCleanSettings SetProject(this DotNetCleanSettings toolSettings, string project) + public static DotNetPublishSettings SetManifest(this DotNetPublishSettings toolSettings, string manifest) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = project; + toolSettings.Manifest = manifest; return toolSettings; } - ///

Resets .

The MSBuild project to clean. If a project file is not specified, MSBuild searches the current working directory for a file that has a file extension that ends in proj and uses that file.

+ ///

Resets .

Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. To specify multiple manifests, add a --manifest option for each manifest. This option is available starting with .NET Core 2.0 SDK.

[Pure] - public static DotNetCleanSettings ResetProject(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ResetManifest(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = null; + toolSettings.Manifest = null; return toolSettings; } #endregion - #region Configuration - ///

Sets .

Defines the build configuration. The default value is Debug. This option is only required when cleaning if you specified it during build time.

+ #region NoRestore + ///

Sets .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetCleanSettings SetConfiguration(this DotNetCleanSettings toolSettings, string configuration) + public static DotNetPublishSettings SetNoRestore(this DotNetPublishSettings toolSettings, bool? noRestore) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = configuration; + toolSettings.NoRestore = noRestore; return toolSettings; } - ///

Resets .

Defines the build configuration. The default value is Debug. This option is only required when cleaning if you specified it during build time.

+ ///

Resets .

Doesn't perform an implicit restore when running the command.

[Pure] - public static DotNetCleanSettings ResetConfiguration(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ResetNoRestore(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = null; + toolSettings.NoRestore = null; + return toolSettings; + } + ///

Enables .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPublishSettings EnableNoRestore(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = true; + return toolSettings; + } + ///

Disables .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPublishSettings DisableNoRestore(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = false; + return toolSettings; + } + ///

Toggles .

Doesn't perform an implicit restore when running the command.

+ [Pure] + public static DotNetPublishSettings ToggleNoRestore(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoRestore = !toolSettings.NoRestore; return toolSettings; } #endregion - #region Framework - ///

Sets .

The framework that was specified at build time. The framework must be defined in the project file. If you specified the framework at build time, you must specify the framework when cleaning.

+ #region NoBuild + ///

Sets .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

[Pure] - public static DotNetCleanSettings SetFramework(this DotNetCleanSettings toolSettings, string framework) + public static DotNetPublishSettings SetNoBuild(this DotNetPublishSettings toolSettings, bool? noBuild) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = framework; + toolSettings.NoBuild = noBuild; return toolSettings; } - ///

Resets .

The framework that was specified at build time. The framework must be defined in the project file. If you specified the framework at build time, you must specify the framework when cleaning.

+ ///

Resets .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

[Pure] - public static DotNetCleanSettings ResetFramework(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ResetNoBuild(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = null; + toolSettings.NoBuild = null; + return toolSettings; + } + ///

Enables .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ [Pure] + public static DotNetPublishSettings EnableNoBuild(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = true; + return toolSettings; + } + ///

Disables .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ [Pure] + public static DotNetPublishSettings DisableNoBuild(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = false; + return toolSettings; + } + ///

Toggles .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ [Pure] + public static DotNetPublishSettings ToggleNoBuild(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.NoBuild = !toolSettings.NoBuild; return toolSettings; } #endregion #region Output - ///

Sets .

Directory in which the build outputs are placed. Specify the --framework switch with the output directory switch if you specified the framework when the project was built.

+ ///

Sets .

Specifies the path for the output directory. If not specified, it defaults to ./bin/[configuration]/[framework]/ for a framework-dependent deployment or ./bin/[configuration]/[framework]/[runtime] for a self-contained deployment.If a relative path is provided, the output directory generated is relative to the project file location, not to the current working directory.

[Pure] - public static DotNetCleanSettings SetOutput(this DotNetCleanSettings toolSettings, string output) + public static DotNetPublishSettings SetOutput(this DotNetPublishSettings toolSettings, string output) { toolSettings = toolSettings.NewInstance(); toolSettings.Output = output; return toolSettings; } - ///

Resets .

Directory in which the build outputs are placed. Specify the --framework switch with the output directory switch if you specified the framework when the project was built.

+ ///

Resets .

Specifies the path for the output directory. If not specified, it defaults to ./bin/[configuration]/[framework]/ for a framework-dependent deployment or ./bin/[configuration]/[framework]/[runtime] for a self-contained deployment.If a relative path is provided, the output directory generated is relative to the project file location, not to the current working directory.

[Pure] - public static DotNetCleanSettings ResetOutput(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ResetOutput(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); toolSettings.Output = null; return toolSettings; } #endregion + #region SelfContained + ///

Sets .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ [Pure] + public static DotNetPublishSettings SetSelfContained(this DotNetPublishSettings toolSettings, bool? selfContained) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SelfContained = selfContained; + return toolSettings; + } + ///

Resets .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ [Pure] + public static DotNetPublishSettings ResetSelfContained(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SelfContained = null; + return toolSettings; + } + ///

Enables .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ [Pure] + public static DotNetPublishSettings EnableSelfContained(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SelfContained = true; + return toolSettings; + } + ///

Disables .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ [Pure] + public static DotNetPublishSettings DisableSelfContained(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SelfContained = false; + return toolSettings; + } + ///

Toggles .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ [Pure] + public static DotNetPublishSettings ToggleSelfContained(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.SelfContained = !toolSettings.SelfContained; + return toolSettings; + } + #endregion #region Runtime - ///

Sets .

Cleans the output folder of the specified runtime. This is used when a self-contained deployment was created.

+ ///

Sets .

Publishes the application for a given runtime. This is used when creating a self-contained deployment (SCD). For a list of Runtime Identifiers (RIDs), see the RID catalog. Default is to publish a framework-dependent deployment (FDD).

+ [Pure] + public static DotNetPublishSettings SetRuntime(this DotNetPublishSettings toolSettings, string runtime) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = runtime; + return toolSettings; + } + ///

Resets .

Publishes the application for a given runtime. This is used when creating a self-contained deployment (SCD). For a list of Runtime Identifiers (RIDs), see the RID catalog. Default is to publish a framework-dependent deployment (FDD).

+ [Pure] + public static DotNetPublishSettings ResetRuntime(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Runtime = null; + return toolSettings; + } + #endregion + #region Verbosity + ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetPublishSettings SetVerbosity(this DotNetPublishSettings toolSettings, DotNetVerbosity verbosity) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = verbosity; + return toolSettings; + } + ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ [Pure] + public static DotNetPublishSettings ResetVerbosity(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Verbosity = null; + return toolSettings; + } + #endregion + #region VersionSuffix + ///

Sets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ [Pure] + public static DotNetPublishSettings SetVersionSuffix(this DotNetPublishSettings toolSettings, string versionSuffix) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.VersionSuffix = versionSuffix; + return toolSettings; + } + ///

Resets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ [Pure] + public static DotNetPublishSettings ResetVersionSuffix(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.VersionSuffix = null; + return toolSettings; + } + #endregion + #region DisableParallel + ///

Sets .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetPublishSettings SetDisableParallel(this DotNetPublishSettings toolSettings, bool? disableParallel) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = disableParallel; + return toolSettings; + } + ///

Resets .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetPublishSettings ResetDisableParallel(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = null; + return toolSettings; + } + ///

Enables .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetPublishSettings EnableDisableParallel(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = true; + return toolSettings; + } + ///

Disables .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetPublishSettings DisableDisableParallel(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = false; + return toolSettings; + } + ///

Toggles .

Disables restoring multiple projects in parallel.

+ [Pure] + public static DotNetPublishSettings ToggleDisableParallel(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.DisableParallel = !toolSettings.DisableParallel; + return toolSettings; + } + #endregion + #region Force + ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetPublishSettings SetForce(this DotNetPublishSettings toolSettings, bool? force) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = force; + return toolSettings; + } + ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetPublishSettings ResetForce(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = null; + return toolSettings; + } + ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ [Pure] + public static DotNetPublishSettings EnableForce(this DotNetPublishSettings toolSettings) + { + toolSettings = toolSettings.NewInstance(); + toolSettings.Force = true; + return toolSettings; + } + ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetCleanSettings SetRuntime(this DotNetCleanSettings toolSettings, string runtime) + public static DotNetPublishSettings DisableForce(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = runtime; + toolSettings.Force = false; return toolSettings; } - ///

Resets .

Cleans the output folder of the specified runtime. This is used when a self-contained deployment was created.

+ ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

[Pure] - public static DotNetCleanSettings ResetRuntime(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ToggleForce(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = null; + toolSettings.Force = !toolSettings.Force; return toolSettings; } #endregion - #region Verbosity - ///

Sets .

Sets the verbosity level of the command. Allowed levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ #region IgnoreFailedSources + ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetCleanSettings SetVerbosity(this DotNetCleanSettings toolSettings, DotNetVerbosity verbosity) + public static DotNetPublishSettings SetIgnoreFailedSources(this DotNetPublishSettings toolSettings, bool? ignoreFailedSources) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = verbosity; + toolSettings.IgnoreFailedSources = ignoreFailedSources; return toolSettings; } - ///

Resets .

Sets the verbosity level of the command. Allowed levels are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetCleanSettings ResetVerbosity(this DotNetCleanSettings toolSettings) + public static DotNetPublishSettings ResetIgnoreFailedSources(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = null; + toolSettings.IgnoreFailedSources = null; return toolSettings; } - #endregion - } - #endregion - #region DotNetPublishSettingsExtensions - ///

Used within .

- [PublicAPI] - [ExcludeFromCodeCoverage] - public static partial class DotNetPublishSettingsExtensions - { - #region Project - ///

Sets .

The project to publish, which defaults to the current directory if not specified.

+ ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPublishSettings SetProject(this DotNetPublishSettings toolSettings, string project) + public static DotNetPublishSettings EnableIgnoreFailedSources(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = project; + toolSettings.IgnoreFailedSources = true; return toolSettings; } - ///

Resets .

The project to publish, which defaults to the current directory if not specified.

+ ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPublishSettings ResetProject(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableIgnoreFailedSources(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Project = null; + toolSettings.IgnoreFailedSources = false; return toolSettings; } - #endregion - #region Configuration - ///

Sets .

Defines the build configuration. The default value is Debug.

+ ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

[Pure] - public static DotNetPublishSettings SetConfiguration(this DotNetPublishSettings toolSettings, string configuration) + public static DotNetPublishSettings ToggleIgnoreFailedSources(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = configuration; + toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; return toolSettings; } - ///

Resets .

Defines the build configuration. The default value is Debug.

+ #endregion + #region NoCache + ///

Sets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPublishSettings ResetConfiguration(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetNoCache(this DotNetPublishSettings toolSettings, bool? noCache) { toolSettings = toolSettings.NewInstance(); - toolSettings.Configuration = null; + toolSettings.NoCache = noCache; return toolSettings; } - #endregion - #region Framework - ///

Sets .

Publishes the application for the specified target framework. You must specify the target framework in the project file.

+ ///

Resets .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPublishSettings SetFramework(this DotNetPublishSettings toolSettings, string framework) + public static DotNetPublishSettings ResetNoCache(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = framework; + toolSettings.NoCache = null; return toolSettings; } - ///

Resets .

Publishes the application for the specified target framework. You must specify the target framework in the project file.

+ ///

Enables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPublishSettings ResetFramework(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings EnableNoCache(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Framework = null; + toolSettings.NoCache = true; return toolSettings; } - #endregion - #region Manifest - ///

Sets .

Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. To specify multiple manifests, add a --manifest option for each manifest. This option is available starting with .NET Core 2.0 SDK.

+ ///

Disables .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPublishSettings SetManifest(this DotNetPublishSettings toolSettings, string manifest) + public static DotNetPublishSettings DisableNoCache(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Manifest = manifest; + toolSettings.NoCache = false; return toolSettings; } - ///

Resets .

Specifies one or several target manifests to use to trim the set of packages published with the app. The manifest file is part of the output of the dotnet store command. To specify multiple manifests, add a --manifest option for each manifest. This option is available starting with .NET Core 2.0 SDK.

+ ///

Toggles .

Specifies to not cache packages and HTTP requests.

[Pure] - public static DotNetPublishSettings ResetManifest(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleNoCache(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Manifest = null; + toolSettings.NoCache = !toolSettings.NoCache; return toolSettings; } #endregion - #region NoRestore - ///

Sets .

Doesn't perform an implicit restore when running the command.

+ #region NoDependencies + ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPublishSettings SetNoRestore(this DotNetPublishSettings toolSettings, bool? noRestore) + public static DotNetPublishSettings SetNoDependencies(this DotNetPublishSettings toolSettings, bool? noDependencies) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = noRestore; + toolSettings.NoDependencies = noDependencies; return toolSettings; } - ///

Resets .

Doesn't perform an implicit restore when running the command.

+ ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPublishSettings ResetNoRestore(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetNoDependencies(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = null; + toolSettings.NoDependencies = null; return toolSettings; } - ///

Enables .

Doesn't perform an implicit restore when running the command.

+ ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPublishSettings EnableNoRestore(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings EnableNoDependencies(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = true; + toolSettings.NoDependencies = true; return toolSettings; } - ///

Disables .

Doesn't perform an implicit restore when running the command.

+ ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPublishSettings DisableNoRestore(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableNoDependencies(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = false; + toolSettings.NoDependencies = false; return toolSettings; } - ///

Toggles .

Doesn't perform an implicit restore when running the command.

+ ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

[Pure] - public static DotNetPublishSettings ToggleNoRestore(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleNoDependencies(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoRestore = !toolSettings.NoRestore; + toolSettings.NoDependencies = !toolSettings.NoDependencies; return toolSettings; } #endregion - #region NoBuild - ///

Sets .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ #region PackageDirectory + ///

Sets .

Specifies the directory for restored packages.

[Pure] - public static DotNetPublishSettings SetNoBuild(this DotNetPublishSettings toolSettings, bool? noBuild) + public static DotNetPublishSettings SetPackageDirectory(this DotNetPublishSettings toolSettings, string packageDirectory) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = noBuild; + toolSettings.PackageDirectory = packageDirectory; return toolSettings; } - ///

Resets .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ ///

Resets .

Specifies the directory for restored packages.

[Pure] - public static DotNetPublishSettings ResetNoBuild(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetPackageDirectory(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = null; + toolSettings.PackageDirectory = null; return toolSettings; } - ///

Enables .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ #endregion + #region Sources + ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings EnableNoBuild(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetSources(this DotNetPublishSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = true; + toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Disables .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings DisableNoBuild(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetSources(this DotNetPublishSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = false; + toolSettings.SourcesInternal = sources.ToList(); return toolSettings; } - ///

Toggles .

Doesn't build the project before publishing. It also implicitly sets the --no-restore flag.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings ToggleNoBuild(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings AddSources(this DotNetPublishSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoBuild = !toolSettings.NoBuild; + toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - #endregion - #region Output - ///

Sets .

Specifies the path for the output directory. If not specified, it defaults to ./bin/[configuration]/[framework]/ for a framework-dependent deployment or ./bin/[configuration]/[framework]/[runtime] for a self-contained deployment.If a relative path is provided, the output directory generated is relative to the project file location, not to the current working directory.

+ ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings SetOutput(this DotNetPublishSettings toolSettings, string output) + public static DotNetPublishSettings AddSources(this DotNetPublishSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.Output = output; + toolSettings.SourcesInternal.AddRange(sources); return toolSettings; } - ///

Resets .

Specifies the path for the output directory. If not specified, it defaults to ./bin/[configuration]/[framework]/ for a framework-dependent deployment or ./bin/[configuration]/[framework]/[runtime] for a self-contained deployment.If a relative path is provided, the output directory generated is relative to the project file location, not to the current working directory.

+ ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings ResetOutput(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ClearSources(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Output = null; + toolSettings.SourcesInternal.Clear(); return toolSettings; } - #endregion - #region SelfContained - ///

Sets .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings SetSelfContained(this DotNetPublishSettings toolSettings, bool? selfContained) + public static DotNetPublishSettings RemoveSources(this DotNetPublishSettings toolSettings, params string[] sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.SelfContained = selfContained; + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } - ///

Resets .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

[Pure] - public static DotNetPublishSettings ResetSelfContained(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveSources(this DotNetPublishSettings toolSettings, IEnumerable sources) { toolSettings = toolSettings.NewInstance(); - toolSettings.SelfContained = null; + var hashSet = new HashSet(sources); + toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); return toolSettings; } - ///

Enables .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ #endregion + #region UseLockFile + ///

Sets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPublishSettings EnableSelfContained(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetUseLockFile(this DotNetPublishSettings toolSettings, bool? useLockFile) { toolSettings = toolSettings.NewInstance(); - toolSettings.SelfContained = true; + toolSettings.UseLockFile = useLockFile; return toolSettings; } - ///

Disables .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ ///

Resets .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPublishSettings DisableSelfContained(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetUseLockFile(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SelfContained = false; + toolSettings.UseLockFile = null; return toolSettings; } - ///

Toggles .

Publishes the .NET Core runtime with your application so the runtime doesn't need to be installed on the target machine. If a runtime identifier is specified, its default value is true. For more information about the different deployment types, see .NET Core application deployment.

+ ///

Enables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPublishSettings ToggleSelfContained(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings EnableUseLockFile(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SelfContained = !toolSettings.SelfContained; + toolSettings.UseLockFile = true; return toolSettings; } - #endregion - #region Runtime - ///

Sets .

Publishes the application for a given runtime. This is used when creating a self-contained deployment (SCD). For a list of Runtime Identifiers (RIDs), see the RID catalog. Default is to publish a framework-dependent deployment (FDD).

+ ///

Disables .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPublishSettings SetRuntime(this DotNetPublishSettings toolSettings, string runtime) + public static DotNetPublishSettings DisableUseLockFile(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = runtime; + toolSettings.UseLockFile = false; return toolSettings; } - ///

Resets .

Publishes the application for a given runtime. This is used when creating a self-contained deployment (SCD). For a list of Runtime Identifiers (RIDs), see the RID catalog. Default is to publish a framework-dependent deployment (FDD).

+ ///

Toggles .

Enables project lock file to be generated and used with restore.

[Pure] - public static DotNetPublishSettings ResetRuntime(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleUseLockFile(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Runtime = null; + toolSettings.UseLockFile = !toolSettings.UseLockFile; return toolSettings; } #endregion - #region Verbosity - ///

Sets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ #region LockedMode + ///

Sets .

Don't allow updating project lock file.

[Pure] - public static DotNetPublishSettings SetVerbosity(this DotNetPublishSettings toolSettings, DotNetVerbosity verbosity) + public static DotNetPublishSettings SetLockedMode(this DotNetPublishSettings toolSettings, bool? lockedMode) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = verbosity; + toolSettings.LockedMode = lockedMode; return toolSettings; } - ///

Resets .

Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic].

+ ///

Resets .

Don't allow updating project lock file.

[Pure] - public static DotNetPublishSettings ResetVerbosity(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetLockedMode(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Verbosity = null; + toolSettings.LockedMode = null; return toolSettings; } - #endregion - #region VersionSuffix - ///

Sets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ ///

Enables .

Don't allow updating project lock file.

[Pure] - public static DotNetPublishSettings SetVersionSuffix(this DotNetPublishSettings toolSettings, string versionSuffix) + public static DotNetPublishSettings EnableLockedMode(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.VersionSuffix = versionSuffix; + toolSettings.LockedMode = true; return toolSettings; } - ///

Resets .

Defines the version suffix for an asterisk (*) in the version field of the project file. The format follows NuGet's version guidelines.

+ ///

Disables .

Don't allow updating project lock file.

[Pure] - public static DotNetPublishSettings ResetVersionSuffix(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableLockedMode(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.VersionSuffix = null; + toolSettings.LockedMode = false; return toolSettings; } - #endregion - #region DisableParallel - ///

Sets .

Disables restoring multiple projects in parallel.

+ ///

Toggles .

Don't allow updating project lock file.

[Pure] - public static DotNetPublishSettings SetDisableParallel(this DotNetPublishSettings toolSettings, bool? disableParallel) + public static DotNetPublishSettings ToggleLockedMode(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = disableParallel; + toolSettings.LockedMode = !toolSettings.LockedMode; return toolSettings; } - ///

Resets .

Disables restoring multiple projects in parallel.

+ #endregion + #region LockFilePath + ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetPublishSettings ResetDisableParallel(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetLockFilePath(this DotNetPublishSettings toolSettings, string lockFilePath) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = null; + toolSettings.LockFilePath = lockFilePath; return toolSettings; } - ///

Enables .

Disables restoring multiple projects in parallel.

+ ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

[Pure] - public static DotNetPublishSettings EnableDisableParallel(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetLockFilePath(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = true; + toolSettings.LockFilePath = null; return toolSettings; } - ///

Disables .

Disables restoring multiple projects in parallel.

+ #endregion + #region ForceEvaluate + ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPublishSettings DisableDisableParallel(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetForceEvaluate(this DotNetPublishSettings toolSettings, bool? forceEvaluate) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = false; + toolSettings.ForceEvaluate = forceEvaluate; return toolSettings; } - ///

Toggles .

Disables restoring multiple projects in parallel.

+ ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPublishSettings ToggleDisableParallel(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetForceEvaluate(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.DisableParallel = !toolSettings.DisableParallel; + toolSettings.ForceEvaluate = null; return toolSettings; } - #endregion - #region Force - ///

Sets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPublishSettings SetForce(this DotNetPublishSettings toolSettings, bool? force) + public static DotNetPublishSettings EnableForceEvaluate(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = force; + toolSettings.ForceEvaluate = true; return toolSettings; } - ///

Resets .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPublishSettings ResetForce(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableForceEvaluate(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = null; + toolSettings.ForceEvaluate = false; return toolSettings; } - ///

Enables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

[Pure] - public static DotNetPublishSettings EnableForce(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleForceEvaluate(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = true; + toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; return toolSettings; } - ///

Disables .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ #endregion + #region Properties + ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableForce(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetProperties(this DotNetPublishSettings toolSettings, IDictionary properties) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = false; + toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); return toolSettings; } - ///

Toggles .

Forces all dependencies to be resolved even if the last restore was successful. This is equivalent to deleting the project.assets.json file.

+ ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleForce(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ClearProperties(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.Force = !toolSettings.Force; + toolSettings.PropertiesInternal.Clear(); return toolSettings; } - #endregion - #region IgnoreFailedSources - ///

Sets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetIgnoreFailedSources(this DotNetPublishSettings toolSettings, bool? ignoreFailedSources) + public static DotNetPublishSettings AddProperty(this DotNetPublishSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = ignoreFailedSources; + toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); return toolSettings; } - ///

Resets .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetIgnoreFailedSources(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveProperty(this DotNetPublishSettings toolSettings, string propertyKey) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = null; + toolSettings.PropertiesInternal.Remove(propertyKey); return toolSettings; } - ///

Enables .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableIgnoreFailedSources(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetProperty(this DotNetPublishSettings toolSettings, string propertyKey, object propertyValue) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = true; + toolSettings.PropertiesInternal[propertyKey] = propertyValue; return toolSettings; } - ///

Disables .

Only warn about failed sources if there are packages meeting the version requirement.

+ #region RunCodeAnalysis + ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableIgnoreFailedSources(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetRunCodeAnalysis(this DotNetPublishSettings toolSettings, bool? runCodeAnalysis) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = false; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; return toolSettings; } - ///

Toggles .

Only warn about failed sources if there are packages meeting the version requirement.

+ ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleIgnoreFailedSources(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetRunCodeAnalysis(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.IgnoreFailedSources = !toolSettings.IgnoreFailedSources; + toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); return toolSettings; } - #endregion - #region NoCache - ///

Sets .

Specifies to not cache packages and HTTP requests.

+ ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetNoCache(this DotNetPublishSettings toolSettings, bool? noCache) + public static DotNetPublishSettings EnableRunCodeAnalysis(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = noCache; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; return toolSettings; } - ///

Resets .

Specifies to not cache packages and HTTP requests.

+ ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetNoCache(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableRunCodeAnalysis(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = null; + toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; return toolSettings; } - ///

Enables .

Specifies to not cache packages and HTTP requests.

+ ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableNoCache(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleRunCodeAnalysis(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = true; + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); return toolSettings; } - ///

Disables .

Specifies to not cache packages and HTTP requests.

+ #endregion + #region NoWarn + ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableNoCache(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = false; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Toggles .

Specifies to not cache packages and HTTP requests.

+ ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleNoCache(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoCache = !toolSettings.NoCache; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - #endregion - #region NoDependencies - ///

Sets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetNoDependencies(this DotNetPublishSettings toolSettings, bool? noDependencies) + public static DotNetPublishSettings AddNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = noDependencies; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Resets .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetNoDependencies(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings AddNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = null; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Enables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableNoDependencies(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ClearNoWarns(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = true; + toolSettings.PropertiesInternal.Remove("NoWarn"); return toolSettings; } - ///

Disables .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableNoDependencies(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = false; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } - ///

Toggles .

When restoring a project with project-to-project (P2P) references, restore the root project and not the references.

+ ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleNoDependencies(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) { toolSettings = toolSettings.NewInstance(); - toolSettings.NoDependencies = !toolSettings.NoDependencies; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); return toolSettings; } #endregion - #region PackageDirectory - ///

Sets .

Specifies the directory for restored packages.

+ #region WarningsAsErrors + ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetPackageDirectory(this DotNetPublishSettings toolSettings, string packageDirectory) + public static DotNetPublishSettings SetWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = packageDirectory; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Resets .

Specifies the directory for restored packages.

+ ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetPackageDirectory(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PackageDirectory = null; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - #endregion - #region Sources - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetSources(this DotNetPublishSettings toolSettings, params string[] sources) + public static DotNetPublishSettings AddWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Sets to a new list.

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetSources(this DotNetPublishSettings toolSettings, IEnumerable sources) + public static DotNetPublishSettings AddWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal = sources.ToList(); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddSources(this DotNetPublishSettings toolSettings, params string[] sources) + public static DotNetPublishSettings ClearWarningsAsErrors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); return toolSettings; } - ///

Adds values to .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddSources(this DotNetPublishSettings toolSettings, IEnumerable sources) + public static DotNetPublishSettings RemoveWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.AddRange(sources); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Clears .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ClearSources(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.SourcesInternal.Clear(); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ #endregion + #region WarningLevel + ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveSources(this DotNetPublishSettings toolSettings, params string[] sources) + public static DotNetPublishSettings SetWarningLevel(this DotNetPublishSettings toolSettings, int? warningLevel) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; return toolSettings; } - ///

Removes values from .

Specifies a NuGet package source to use during the restore operation. This overrides all of the sources specified in the NuGet.config file(s). Multiple sources can be provided by specifying this option multiple times.

+ ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveSources(this DotNetPublishSettings toolSettings, IEnumerable sources) + public static DotNetPublishSettings ResetWarningLevel(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - var hashSet = new HashSet(sources); - toolSettings.SourcesInternal.RemoveAll(x => hashSet.Contains(x)); + toolSettings.PropertiesInternal.Remove("WarningLevel"); return toolSettings; } #endregion - #region UseLockFile - ///

Sets .

Enables project lock file to be generated and used with restore.

+ #region TreatWarningsAsErrors + ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetUseLockFile(this DotNetPublishSettings toolSettings, bool? useLockFile) + public static DotNetPublishSettings SetTreatWarningsAsErrors(this DotNetPublishSettings toolSettings, bool? treatWarningsAsErrors) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = useLockFile; + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; return toolSettings; } - ///

Resets .

Enables project lock file to be generated and used with restore.

+ ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetUseLockFile(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = null; + toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); return toolSettings; } - ///

Enables .

Enables project lock file to be generated and used with restore.

+ ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableUseLockFile(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings EnableTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = true; + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; return toolSettings; } - ///

Disables .

Enables project lock file to be generated and used with restore.

+ ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableUseLockFile(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings DisableTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = false; + toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; return toolSettings; } - ///

Toggles .

Enables project lock file to be generated and used with restore.

+ ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleUseLockFile(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ToggleTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.UseLockFile = !toolSettings.UseLockFile; + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); return toolSettings; } #endregion - #region LockedMode - ///

Sets .

Don't allow updating project lock file.

+ #region AssemblyVersion + ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetLockedMode(this DotNetPublishSettings toolSettings, bool? lockedMode) + public static DotNetPublishSettings SetAssemblyVersion(this DotNetPublishSettings toolSettings, string assemblyVersion) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = lockedMode; + toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; return toolSettings; } - ///

Resets .

Don't allow updating project lock file.

+ ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetLockedMode(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetAssemblyVersion(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = null; + toolSettings.PropertiesInternal.Remove("AssemblyVersion"); return toolSettings; } - ///

Enables .

Don't allow updating project lock file.

+ #endregion + #region FileVersion + ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableLockedMode(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetFileVersion(this DotNetPublishSettings toolSettings, string fileVersion) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = true; + toolSettings.PropertiesInternal["FileVersion"] = fileVersion; return toolSettings; } - ///

Disables .

Don't allow updating project lock file.

+ ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableLockedMode(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetFileVersion(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = false; + toolSettings.PropertiesInternal.Remove("FileVersion"); return toolSettings; } - ///

Toggles .

Don't allow updating project lock file.

+ #endregion + #region InformationalVersion + ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleLockedMode(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetInformationalVersion(this DotNetPublishSettings toolSettings, string informationalVersion) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockedMode = !toolSettings.LockedMode; + toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; return toolSettings; } - #endregion - #region LockFilePath - ///

Sets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetLockFilePath(this DotNetPublishSettings toolSettings, string lockFilePath) + public static DotNetPublishSettings ResetInformationalVersion(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = lockFilePath; + toolSettings.PropertiesInternal.Remove("InformationalVersion"); return toolSettings; } - ///

Resets .

Output location where project lock file is written. By default, this is 'PROJECT_ROOT\packages.lock.json'.

+ #endregion + #region PackageId + ///

Sets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetLockFilePath(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetPackageId(this DotNetPublishSettings toolSettings, string packageId) { toolSettings = toolSettings.NewInstance(); - toolSettings.LockFilePath = null; + toolSettings.PropertiesInternal["PackageId"] = packageId; return toolSettings; } - #endregion - #region ForceEvaluate - ///

Sets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets PackageId in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetForceEvaluate(this DotNetPublishSettings toolSettings, bool? forceEvaluate) + public static DotNetPublishSettings ResetPackageId(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = forceEvaluate; + toolSettings.PropertiesInternal.Remove("PackageId"); return toolSettings; } - ///

Resets .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ #endregion + #region Version + ///

Sets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetForceEvaluate(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetVersion(this DotNetPublishSettings toolSettings, string version) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = null; + toolSettings.PropertiesInternal["Version"] = version; return toolSettings; } - ///

Enables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets Version in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableForceEvaluate(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetVersion(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = true; + toolSettings.PropertiesInternal.Remove("Version"); return toolSettings; } - ///

Disables .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ #endregion + #region VersionPrefix + ///

Sets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableForceEvaluate(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetVersionPrefix(this DotNetPublishSettings toolSettings, string versionPrefix) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = false; + toolSettings.PropertiesInternal["VersionPrefix"] = versionPrefix; return toolSettings; } - ///

Toggles .

Forces restore to reevaluate all dependencies even if a lock file already exists.

+ ///

Resets VersionPrefix in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleForceEvaluate(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetVersionPrefix(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.ForceEvaluate = !toolSettings.ForceEvaluate; + toolSettings.PropertiesInternal.Remove("VersionPrefix"); return toolSettings; } #endregion - #region Properties - ///

Sets to a new dictionary.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region Authors + ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetProperties(this DotNetPublishSettings toolSettings, IDictionary properties) + public static DotNetPublishSettings SetAuthors(this DotNetPublishSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal = properties.ToDictionary(x => x.Key, x => x.Value, StringComparer.OrdinalIgnoreCase); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Clears .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets Authors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ClearProperties(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetAuthors(this DotNetPublishSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Clear(); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Adds a new key-value-pair .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddProperty(this DotNetPublishSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetPublishSettings AddAuthors(this DotNetPublishSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Add(propertyKey, propertyValue); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Removes a key-value-pair from .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to Authors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveProperty(this DotNetPublishSettings toolSettings, string propertyKey) + public static DotNetPublishSettings AddAuthors(this DotNetPublishSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove(propertyKey); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Sets a key-value-pair in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetProperty(this DotNetPublishSettings toolSettings, string propertyKey, object propertyValue) + public static DotNetPublishSettings ClearAuthors(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal[propertyKey] = propertyValue; + toolSettings.PropertiesInternal.Remove("Authors"); return toolSettings; } - #region RunCodeAnalysis - ///

Sets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetRunCodeAnalysis(this DotNetPublishSettings toolSettings, bool? runCodeAnalysis) + public static DotNetPublishSettings RemoveAuthors(this DotNetPublishSettings toolSettings, params string[] authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = runCodeAnalysis; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Resets RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from Authors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetRunCodeAnalysis(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemoveAuthors(this DotNetPublishSettings toolSettings, IEnumerable authors) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("RunCodeAnalysis"); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "Authors", authors, ','); return toolSettings; } - ///

Enables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region Title + ///

Sets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableRunCodeAnalysis(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetTitle(this DotNetPublishSettings toolSettings, string title) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = true; + toolSettings.PropertiesInternal["Title"] = title; return toolSettings; } - ///

Disables RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Title in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableRunCodeAnalysis(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetTitle(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["RunCodeAnalysis"] = false; + toolSettings.PropertiesInternal.Remove("Title"); return toolSettings; } - ///

Toggles RunCodeAnalysis in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region Description + ///

Sets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleRunCodeAnalysis(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetDescription(this DotNetPublishSettings toolSettings, string description) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "RunCodeAnalysis"); + toolSettings.PropertiesInternal["Description"] = description; return toolSettings; } - #endregion - #region NoWarn - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Description in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) + public static DotNetPublishSettings ResetDescription(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal.Remove("Description"); return toolSettings; } - ///

Sets NoWarn in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region Copyright + ///

Sets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) + public static DotNetPublishSettings SetCopyright(this DotNetPublishSettings toolSettings, string copyright) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal["Copyright"] = copyright; return toolSettings; } - ///

Adds values to NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets Copyright in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) + public static DotNetPublishSettings ResetCopyright(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal.Remove("Copyright"); return toolSettings; } - ///

Adds values to NoWarn in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region PackageRequireLicenseAcceptance + ///

Sets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) + public static DotNetPublishSettings SetPackageRequireLicenseAcceptance(this DotNetPublishSettings toolSettings, bool? packageRequireLicenseAcceptance) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = packageRequireLicenseAcceptance; return toolSettings; } - ///

Clears NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ClearNoWarns(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetPackageRequireLicenseAcceptance(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("NoWarn"); + toolSettings.PropertiesInternal.Remove("PackageRequireLicenseAcceptance"); return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Enables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveNoWarns(this DotNetPublishSettings toolSettings, params int[] noWarn) + public static DotNetPublishSettings EnablePackageRequireLicenseAcceptance(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = true; return toolSettings; } - ///

Removes values from NoWarn in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Disables PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveNoWarns(this DotNetPublishSettings toolSettings, IEnumerable noWarn) + public static DotNetPublishSettings DisablePackageRequireLicenseAcceptance(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "NoWarn", noWarn, ';'); + toolSettings.PropertiesInternal["PackageRequireLicenseAcceptance"] = false; return toolSettings; } - #endregion - #region WarningsAsErrors - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Toggles PackageRequireLicenseAcceptance in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPublishSettings TogglePackageRequireLicenseAcceptance(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "PackageRequireLicenseAcceptance"); return toolSettings; } - ///

Sets WarningsAsErrors in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region PackageLicenseUrl + ///

Sets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPublishSettings SetPackageLicenseUrl(this DotNetPublishSettings toolSettings, string packageLicenseUrl) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.PropertiesInternal["PackageLicenseUrl"] = packageLicenseUrl; return toolSettings; } - ///

Adds values to WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageLicenseUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPublishSettings ResetPackageLicenseUrl(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.PropertiesInternal.Remove("PackageLicenseUrl"); return toolSettings; } - ///

Adds values to WarningsAsErrors in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region PackageProjectUrl + ///

Sets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings AddWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPublishSettings SetPackageProjectUrl(this DotNetPublishSettings toolSettings, string packageProjectUrl) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.PropertiesInternal["PackageProjectUrl"] = packageProjectUrl; return toolSettings; } - ///

Clears WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageProjectUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ClearWarningsAsErrors(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetPackageProjectUrl(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("WarningsAsErrors"); + toolSettings.PropertiesInternal.Remove("PackageProjectUrl"); return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #endregion + #region PackageIconUrl + ///

Sets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveWarningsAsErrors(this DotNetPublishSettings toolSettings, params int[] warningsAsErrors) + public static DotNetPublishSettings SetPackageIconUrl(this DotNetPublishSettings toolSettings, string packageIconUrl) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.PropertiesInternal["PackageIconUrl"] = packageIconUrl; return toolSettings; } - ///

Removes values from WarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageIconUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings RemoveWarningsAsErrors(this DotNetPublishSettings toolSettings, IEnumerable warningsAsErrors) + public static DotNetPublishSettings ResetPackageIconUrl(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "WarningsAsErrors", warningsAsErrors, ';'); + toolSettings.PropertiesInternal.Remove("PackageIconUrl"); return toolSettings; } #endregion - #region WarningLevel - ///

Sets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region PackageTags + ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetWarningLevel(this DotNetPublishSettings toolSettings, int? warningLevel) + public static DotNetPublishSettings SetPackageTags(this DotNetPublishSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["WarningLevel"] = warningLevel; + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Resets WarningLevel in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Sets PackageTags in to a new collection.

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetWarningLevel(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings SetPackageTags(this DotNetPublishSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("WarningLevel"); + ExtensionHelper.SetCollection(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - #endregion - #region TreatWarningsAsErrors - ///

Sets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetTreatWarningsAsErrors(this DotNetPublishSettings toolSettings, bool? treatWarningsAsErrors) + public static DotNetPublishSettings AddPackageTags(this DotNetPublishSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = treatWarningsAsErrors; + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Resets TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Adds values to PackageTags in existing .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings AddPackageTags(this DotNetPublishSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("TreatWarningsAsErrors"); + ExtensionHelper.AddItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Enables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Clears PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings EnableTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ClearPackageTags(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = true; + toolSettings.PropertiesInternal.Remove("PackageTags"); return toolSettings; } - ///

Disables TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings DisableTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemovePackageTags(this DotNetPublishSettings toolSettings, params string[] packageTags) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["TreatWarningsAsErrors"] = false; + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } - ///

Toggles TreatWarningsAsErrors in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Removes values from PackageTags in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ToggleTreatWarningsAsErrors(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings RemovePackageTags(this DotNetPublishSettings toolSettings, IEnumerable packageTags) { toolSettings = toolSettings.NewInstance(); - ExtensionHelper.ToggleBoolean(toolSettings.PropertiesInternal, "TreatWarningsAsErrors"); + ExtensionHelper.RemoveItems(toolSettings.PropertiesInternal, "PackageTags", packageTags, ' '); return toolSettings; } #endregion - #region AssemblyVersion - ///

Sets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region PackageReleaseNotes + ///

Sets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetAssemblyVersion(this DotNetPublishSettings toolSettings, string assemblyVersion) + public static DotNetPublishSettings SetPackageReleaseNotes(this DotNetPublishSettings toolSettings, string packageReleaseNotes) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["AssemblyVersion"] = assemblyVersion; + toolSettings.PropertiesInternal["PackageReleaseNotes"] = packageReleaseNotes; return toolSettings; } - ///

Resets AssemblyVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets PackageReleaseNotes in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetAssemblyVersion(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetPackageReleaseNotes(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("AssemblyVersion"); + toolSettings.PropertiesInternal.Remove("PackageReleaseNotes"); return toolSettings; } #endregion - #region FileVersion - ///

Sets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region RepositoryUrl + ///

Sets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetFileVersion(this DotNetPublishSettings toolSettings, string fileVersion) + public static DotNetPublishSettings SetRepositoryUrl(this DotNetPublishSettings toolSettings, string repositoryUrl) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["FileVersion"] = fileVersion; + toolSettings.PropertiesInternal["RepositoryUrl"] = repositoryUrl; return toolSettings; } - ///

Resets FileVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RepositoryUrl in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetFileVersion(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetRepositoryUrl(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("FileVersion"); + toolSettings.PropertiesInternal.Remove("RepositoryUrl"); return toolSettings; } #endregion - #region InformationalVersion - ///

Sets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ #region RepositoryType + ///

Sets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings SetInformationalVersion(this DotNetPublishSettings toolSettings, string informationalVersion) + public static DotNetPublishSettings SetRepositoryType(this DotNetPublishSettings toolSettings, string repositoryType) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal["InformationalVersion"] = informationalVersion; + toolSettings.PropertiesInternal["RepositoryType"] = repositoryType; return toolSettings; } - ///

Resets InformationalVersion in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

+ ///

Resets RepositoryType in .

Set or override the specified project-level properties, where name is the property name and value is the property value. Specify each property separately, or use a semicolon or comma to separate multiple properties, as the following example shows:

/property:WarningLevel=2;OutDir=bin\Debug

[Pure] - public static DotNetPublishSettings ResetInformationalVersion(this DotNetPublishSettings toolSettings) + public static DotNetPublishSettings ResetRepositoryType(this DotNetPublishSettings toolSettings) { toolSettings = toolSettings.NewInstance(); - toolSettings.PropertiesInternal.Remove("InformationalVersion"); + toolSettings.PropertiesInternal.Remove("RepositoryType"); return toolSettings; } #endregion diff --git a/source/Nuke.Common/Tools/DupFinder/DupFinder.Generated.cs b/source/Nuke.Common/Tools/DupFinder/DupFinder.Generated.cs index e1fb1a2f9..c0c80049f 100644 --- a/source/Nuke.Common/Tools/DupFinder/DupFinder.Generated.cs +++ b/source/Nuke.Common/Tools/DupFinder/DupFinder.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/DupFinder.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Git/Git.Generated.cs b/source/Nuke.Common/Tools/Git/Git.Generated.cs index e18cbafa6..9f0865c7b 100644 --- a/source/Nuke.Common/Tools/Git/Git.Generated.cs +++ b/source/Nuke.Common/Tools/Git/Git.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Git.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/GitLink/GitLink.Generated.cs b/source/Nuke.Common/Tools/GitLink/GitLink.Generated.cs index ddf76722e..fe7e7f852 100644 --- a/source/Nuke.Common/Tools/GitLink/GitLink.Generated.cs +++ b/source/Nuke.Common/Tools/GitLink/GitLink.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/GitLink.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/GitReleaseManager/GitReleaseManager.Generated.cs b/source/Nuke.Common/Tools/GitReleaseManager/GitReleaseManager.Generated.cs index c93ddbd5e..2c4f08685 100644 --- a/source/Nuke.Common/Tools/GitReleaseManager/GitReleaseManager.Generated.cs +++ b/source/Nuke.Common/Tools/GitReleaseManager/GitReleaseManager.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/GitReleaseManager.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/GitVersion/GitVersion.Generated.cs b/source/Nuke.Common/Tools/GitVersion/GitVersion.Generated.cs index 7775be167..228c8638a 100644 --- a/source/Nuke.Common/Tools/GitVersion/GitVersion.Generated.cs +++ b/source/Nuke.Common/Tools/GitVersion/GitVersion.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/GitVersion.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/InspectCode/InspectCode.Generated.cs b/source/Nuke.Common/Tools/InspectCode/InspectCode.Generated.cs index 4f3543fb2..d4adaa575 100644 --- a/source/Nuke.Common/Tools/InspectCode/InspectCode.Generated.cs +++ b/source/Nuke.Common/Tools/InspectCode/InspectCode.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/InspectCode.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs b/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs index 586a1bafe..02168eba8 100644 --- a/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs +++ b/source/Nuke.Common/Tools/MSBuild/MSBuild.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/MSBuild.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/MSpec/MSpec.Generated.cs b/source/Nuke.Common/Tools/MSpec/MSpec.Generated.cs index dedb499ea..e2ba9c5cc 100644 --- a/source/Nuke.Common/Tools/MSpec/MSpec.Generated.cs +++ b/source/Nuke.Common/Tools/MSpec/MSpec.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/MSpec.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Npm/Npm.Generated.cs b/source/Nuke.Common/Tools/Npm/Npm.Generated.cs index 1688f598b..50db1e5c9 100644 --- a/source/Nuke.Common/Tools/Npm/Npm.Generated.cs +++ b/source/Nuke.Common/Tools/Npm/Npm.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Npm.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/NuGet/NuGet.Generated.cs b/source/Nuke.Common/Tools/NuGet/NuGet.Generated.cs index ac802c77e..164dc2f81 100644 --- a/source/Nuke.Common/Tools/NuGet/NuGet.Generated.cs +++ b/source/Nuke.Common/Tools/NuGet/NuGet.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/NuGet.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/NuGet/NuGetPackage.Generated.cs b/source/Nuke.Common/Tools/NuGet/NuGetPackage.Generated.cs index 1137bd28e..5bae0ec20 100644 --- a/source/Nuke.Common/Tools/NuGet/NuGetPackage.Generated.cs +++ b/source/Nuke.Common/Tools/NuGet/NuGetPackage.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/NuGetPackage.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Nunit/Nunit3.Generated.cs b/source/Nuke.Common/Tools/Nunit/Nunit3.Generated.cs index b9d63af27..6b798b9ff 100644 --- a/source/Nuke.Common/Tools/Nunit/Nunit3.Generated.cs +++ b/source/Nuke.Common/Tools/Nunit/Nunit3.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Nunit3.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Octopus/Octopus.Generated.cs b/source/Nuke.Common/Tools/Octopus/Octopus.Generated.cs index 3407608b6..1336bd020 100644 --- a/source/Nuke.Common/Tools/Octopus/Octopus.Generated.cs +++ b/source/Nuke.Common/Tools/Octopus/Octopus.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Octopus.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/OpenCover/OpenCover.Generated.cs b/source/Nuke.Common/Tools/OpenCover/OpenCover.Generated.cs index 92db733b9..f86c08624 100644 --- a/source/Nuke.Common/Tools/OpenCover/OpenCover.Generated.cs +++ b/source/Nuke.Common/Tools/OpenCover/OpenCover.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/OpenCover.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Paket/Paket.Generated.cs b/source/Nuke.Common/Tools/Paket/Paket.Generated.cs index 3f233aea4..dfbe36d3c 100644 --- a/source/Nuke.Common/Tools/Paket/Paket.Generated.cs +++ b/source/Nuke.Common/Tools/Paket/Paket.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Paket.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/ReportGenerator/ReportGenerator.Generated.cs b/source/Nuke.Common/Tools/ReportGenerator/ReportGenerator.Generated.cs index ac32ac54c..af03288e4 100644 --- a/source/Nuke.Common/Tools/ReportGenerator/ReportGenerator.Generated.cs +++ b/source/Nuke.Common/Tools/ReportGenerator/ReportGenerator.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/ReportGenerator.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/SignTool/SignTool.Generated.cs b/source/Nuke.Common/Tools/SignTool/SignTool.Generated.cs index 88320ecc5..c57d0ddcc 100644 --- a/source/Nuke.Common/Tools/SignTool/SignTool.Generated.cs +++ b/source/Nuke.Common/Tools/SignTool/SignTool.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/SignTool.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Slack/Slack.Generated.cs b/source/Nuke.Common/Tools/Slack/Slack.Generated.cs index 51390cf34..a7885fb29 100644 --- a/source/Nuke.Common/Tools/Slack/Slack.Generated.cs +++ b/source/Nuke.Common/Tools/Slack/Slack.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Slack.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/SpecFlow/SpecFlow.Generated.cs b/source/Nuke.Common/Tools/SpecFlow/SpecFlow.Generated.cs index bb985bd07..2147ec436 100644 --- a/source/Nuke.Common/Tools/SpecFlow/SpecFlow.Generated.cs +++ b/source/Nuke.Common/Tools/SpecFlow/SpecFlow.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/SpecFlow.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Squirrel/Squirrel.Generated.cs b/source/Nuke.Common/Tools/Squirrel/Squirrel.Generated.cs index 17523f548..a174fc100 100644 --- a/source/Nuke.Common/Tools/Squirrel/Squirrel.Generated.cs +++ b/source/Nuke.Common/Tools/Squirrel/Squirrel.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Squirrel.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/TestCloud/TestCloud.Generated.cs b/source/Nuke.Common/Tools/TestCloud/TestCloud.Generated.cs index 47c7d4796..d4801474b 100644 --- a/source/Nuke.Common/Tools/TestCloud/TestCloud.Generated.cs +++ b/source/Nuke.Common/Tools/TestCloud/TestCloud.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/TestCloud.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Unity/Unity.Generated.cs b/source/Nuke.Common/Tools/Unity/Unity.Generated.cs index f53bd31b8..08e8445d2 100644 --- a/source/Nuke.Common/Tools/Unity/Unity.Generated.cs +++ b/source/Nuke.Common/Tools/Unity/Unity.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Unity.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/VSTest/VSTest.Generated.cs b/source/Nuke.Common/Tools/VSTest/VSTest.Generated.cs index d57d38e5e..a635fa0b7 100644 --- a/source/Nuke.Common/Tools/VSTest/VSTest.Generated.cs +++ b/source/Nuke.Common/Tools/VSTest/VSTest.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/VSTest.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/VSWhere/VSWhere.Generated.cs b/source/Nuke.Common/Tools/VSWhere/VSWhere.Generated.cs index 00dddf084..e43b9a833 100644 --- a/source/Nuke.Common/Tools/VSWhere/VSWhere.Generated.cs +++ b/source/Nuke.Common/Tools/VSWhere/VSWhere.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/VSWhere.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/WebConfigTransformRunner/WebConfigTransformRunner.Generated.cs b/source/Nuke.Common/Tools/WebConfigTransformRunner/WebConfigTransformRunner.Generated.cs index de56fc0cf..98e0060e7 100644 --- a/source/Nuke.Common/Tools/WebConfigTransformRunner/WebConfigTransformRunner.Generated.cs +++ b/source/Nuke.Common/Tools/WebConfigTransformRunner/WebConfigTransformRunner.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/WebConfigTransformRunner.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; diff --git a/source/Nuke.Common/Tools/Xunit/Xunit.Generated.cs b/source/Nuke.Common/Tools/Xunit/Xunit.Generated.cs index d11420329..5b180bc70 100644 --- a/source/Nuke.Common/Tools/Xunit/Xunit.Generated.cs +++ b/source/Nuke.Common/Tools/Xunit/Xunit.Generated.cs @@ -1,5 +1,5 @@ // Generated from https://github.com/nuke-build/nuke/blob/master/build/specifications/Xunit.json -// Generated with Nuke.CodeGeneration version LOCAL (OSX, .NETStandard,Version=v2.0) +// Generated with Nuke.CodeGeneration version LOCAL (OSX,.NETStandard,Version=v2.0) using JetBrains.Annotations; using Newtonsoft.Json; From de3eec022df18d81a1ab103b920a5e951ed0f5bb Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 21:58:18 +0100 Subject: [PATCH 20/21] Update CHANGELOG.md --- CHANGELOG.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9bf141802..e907bcd43 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [vNext] -- Change `CheckPathEnvironmentVariable` to be executed only with `Trace` log level +- Change verification of PATH environment variable to be executed only with `Trace` log level - Added `ToolSettings.When` for conditional fluent modifications +- Added `.editorconfig` file in setup to avoid formatting issues - Added `DotMemoryUnitTasks` -- Added `MSBuildSettings.Restore` +- Added missing properties in `DotNetCleanSettings`, `DotNetRestoreSettings` and `MSBuildSettings.Restore` ## [0.12.4] / 2018-12-02 - Fixed `SolutionAttribute` to handle empty configuration file From a92fba46141c60cdea6feca616af1d02d380b2f6 Mon Sep 17 00:00:00 2001 From: Matthias Koch Date: Mon, 10 Dec 2018 22:01:36 +0100 Subject: [PATCH 21/21] Finalize CHANGELOG.md for 0.13.0 --- CHANGELOG.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e907bcd43..8233bc014 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [vNext] + +## [0.13.0] / 2018-12-10 - Change verification of PATH environment variable to be executed only with `Trace` log level - Added `ToolSettings.When` for conditional fluent modifications - Added `.editorconfig` file in setup to avoid formatting issues @@ -224,7 +226,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added CLT tasks for Git - Fixed background color in console output -[vNext]: https://github.com/nuke-build/nuke/compare/0.12.4...HEAD +[vNext]: https://github.com/nuke-build/nuke/compare/0.13.0...HEAD +[0.13.0]: https://github.com/nuke-build/nuke/compare/0.12.4...0.13.0 [0.12.4]: https://github.com/nuke-build/nuke/compare/0.12.3...0.12.4 [0.12.3]: https://github.com/nuke-build/nuke/compare/0.12.2...0.12.3 [0.12.2]: https://github.com/nuke-build/nuke/compare/0.12.1...0.12.2