diff --git a/source/Nuke.Common/Tools/DotNet/DotNet.json b/source/Nuke.Common/Tools/DotNet/DotNet.json index 6d399a39d..ef075f975 100644 --- a/source/Nuke.Common/Tools/DotNet/DotNet.json +++ b/source/Nuke.Common/Tools/DotNet/DotNet.json @@ -202,12 +202,24 @@ "definiteArgument": "run", "settingsClass": { "properties": [ + { + "name": "Architecture", + "type": "string", + "format": "--arch {value}", + "help": "Specifies the target architecture. This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a win-x64 machine, specifying --arch x86 sets the RID to win-x86. If you use this option, don't use the -r|--runtime option. Available since .NET 6 Preview 7." + }, { "name": "Configuration", "type": "string", "format": "--configuration {value}", "help": "Configuration to use for building the project. The default value is Debug." }, + { + "name": "DisableBuildServers", + "type": "bool", + "format": "--disable-build-servers", + "help": "Force the command to ignore any persistent build servers. This option provides a consistent way to disable all use of build caching, which forces a build from scratch. A build that doesn't rely on caches is useful when the caches might be corrupted or incorrect for some reason. Available since .NET 7 SDK." + }, { "name": "Framework", "type": "string", @@ -220,6 +232,12 @@ "format": "--launch-profile {value}", "help": "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." }, + { + "name": "Interactive", + "type": "bool", + "format": "--interactive", + "help": "Allows the command to stop and wait for user input or action. For example, to complete authentication. Available since .NET Core 3.0 SDK." + }, { "name": "NoBuild", "type": "bool", @@ -238,12 +256,42 @@ "format": "--no-restore", "help": "Doesn't perform an implicit restore when running the command." }, + { + "name": "NoSelfContained", + "type": "bool", + "format": "--no-self-contained", + "help": "Publish your application as a framework dependent application. A compatible .NET runtime must be installed on the target machine to run your application." + }, + { + "name": "OperatingSystem", + "type": "string", + "format": "--os {value}", + "help": "Specifies the target operating system (OS). This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a win-x64 machine, specifying --os linux sets the RID to linux-x64. If you use this option, don't use the -r|--runtime option. Available since .NET 6." + }, { "name": "ProjectFile", "type": "string", "format": "--project {value}", "help": "Specifies the path and name of the project file. (See the NOTE.) It defaults to the current directory if not specified." }, + { + "name": "Runtime", + "type": "string", + "format": "--runtime {value}", + "help": "Specifies the target runtime. For a list of Runtime Identifiers (RIDs), see the RID catalog." + }, + { + "name": "SelfContained", + "type": "bool", + "format": "--self-contained {value}", + "help": "Publishes the .NET runtime with the application so the runtime doesn't need to be installed on the target machine. The default is false. However, when targeting .NET 7 or lower, the default is true if a runtime identifier is specified." + }, + { + "name": "Verbosity", + "type": "DotNetVerbosity", + "format": "--verbosity {value}", + "help": "Sets the verbosity level of the command. Allowed values are q[uiet], m[inimal], n[ormal], d[etailed], and diag[nostic]." + }, { "name": "ApplicationArguments", "type": "string", @@ -467,6 +515,7 @@ { "help": "The dotnet msbuild command allows access to a fully functional MSBuild.The command has the exact same capabilities as the existing MSBuild command-line client for SDK-style projects only. The options are all the same. For more information about the available options, see the MSBuild command-line reference.The dotnet build command is equivalent to dotnet msbuild -restore. When you don't want to build the project and you have a specific target you want to run, use dotnet build or dotnet msbuild and specify the target.", "postfix": "MSBuild", + "omitCommonProperties": true, "definiteArgument": "msbuild", "settingsClass": { "properties": [ @@ -548,7 +597,153 @@ "name": "BinaryLog", "type": "string", "format": "-bl:{value}", - "help": "Generare MSBuild binary log." + "help": "Generate MSBuild binary log." + }, + { + "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" + }, + { + "name": "SymbolPackageFormat", + "type": "DotNetSymbolPackageFormat", + "help": "Format for packaging symbols." + }, + { + "name": "PublishReadyToRun", + "type": "bool", + "help": "Compiles application assemblies as ReadyToRun (R2R) format. R2R is a form of ahead-of-time (AOT) compilation. For more information, see ReadyToRun images. Available since .NET Core 3.0 SDK.We recommend that you specify this option in a publish profile rather than on the command line. For more information, see MSBuild." + }, + { + "name": "PublishSingleFile", + "type": "bool", + "help": "Packages the app into a platform-specific single-file executable. The executable is self-extracting and contains all dependencies (including native) that are required to run the app. When the app is first run, the application is extracted to a directory based on the app name and build identifier. Startup is faster when the application is run again. The application doesn't need to extract itself a second time unless a new version is used. Available since .NET Core 3.0 SDK. For more information about single-file publishing, see the single-file bundler design document.We recommend that you specify this option in a publish profile rather than on the command line. For more information, see MSBuild." + }, + { + "name": "PublishTrimmed", + "type": "bool", + "help": "Trims unused libraries to reduce the deployment size of an app when publishing a self-contained executable. For more information, see Trim self-contained deployments and executables. Available since .NET Core 3.0 SDK as a preview feature.We recommend that you specify this option in a publish profile rather than on the command line. For more information, see MSBuild." + }, + { + "name": "PublishProfile", + "type": "string" + }, + { + "name": "Platform", + "type": "string" + }, + { + "name": "ContinuousIntegrationBuild", + "type": "bool" + }, + { + "name": "DeterministicSourcePaths", + "type": "bool" + }, + { + "name": "Deterministic", + "type": "bool" + } + ] } ] } @@ -1503,10 +1698,10 @@ { "name": "Properties", "type": "Dictionary", - "format": "/property:{value}", + "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

", + "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",