From ee17c4ceeb99d21f426afa217598531cd7f3c667 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 22 Aug 2025 13:29:35 +0200 Subject: [PATCH 1/3] Update Post-Action-Registry.md with dotnet.config post action --- docs/Post-Action-Registry.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/Post-Action-Registry.md b/docs/Post-Action-Registry.md index ad5cab1160b..44f2683d7b9 100644 --- a/docs/Post-Action-Registry.md +++ b/docs/Post-Action-Registry.md @@ -10,6 +10,7 @@ | [Change file permissions (Unix/OS X)](#change-file-permissions) | `CB9A6CF3-4F5C-4860-B9D2-03A574959774` | | [Display manual instructions](#display-manual-instructions) | `AC1156F7-BB77-4DB8-B28F-24EEBCCA1E5C` | | [Add a property to an existing JSON file](#add-a-property-to-an-existing-json-file) | `695A3659-EB40-4FF5-A6A6-C9C4E629FCB0` | +| [Create or update 'dotnet.config' file](#create-or-update-dotnet-config-file) | `597E7933-0D87-452C-B094-8FA0EEF7FD97` | # Base configuration Each post action has set of standard properties as well as custom properties defined by certain post action. @@ -487,3 +488,32 @@ Adds a new JSON property in an existing JSON file. `"continueOnError": true` `}] ``` + +# Create or update dotnet.config file + +Creates a new `dotnet.config` file with the specified section, key, and value, or updates an existing `dotnet.config`. + +- **Action ID** : 597E7933-0D87-452C-B094-8FA0EEF7FD97 +- **Specific Configuration** : + - `args`: + - `section (string)`: The section name (for example, `dotnet.test.runner`). + - `key (string)`: The key to set under the given section (for example, `name`). + - `value (string)`: The value to set for the given key (for example, `Microsoft.Testing.Platform`). +- **Supported in** : + - dotnet new3 + - dotnet new (2.0.0 or higher) + +## Example +``` +"postActions": [{ ` + `"description": "Add dotnet.config",` + `"manualInstructions": [ { "text": "Create or update dotnet.config file'" } ],` + `"actionId": "597E7933-0D87-452C-B094-8FA0EEF7FD97",` + `"args": {` + `"section": "dotnet.test.runner",` + `"key": "name",` + `"value": "Microsoft.Testing.Platform",` + `},` + `"continueOnError": true` +`}] +``` From 540f8e04e4874e992caaee15f6fedb517ff5fe01 Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 22 Aug 2025 13:31:04 +0200 Subject: [PATCH 2/3] Update Post-Action-Registry.md --- docs/Post-Action-Registry.md | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/docs/Post-Action-Registry.md b/docs/Post-Action-Registry.md index 44f2683d7b9..450b7929a74 100644 --- a/docs/Post-Action-Registry.md +++ b/docs/Post-Action-Registry.md @@ -504,16 +504,17 @@ Creates a new `dotnet.config` file with the specified section, key, and value, o - dotnet new (2.0.0 or higher) ## Example + ``` -"postActions": [{ ` - `"description": "Add dotnet.config",` - `"manualInstructions": [ { "text": "Create or update dotnet.config file'" } ],` - `"actionId": "597E7933-0D87-452C-B094-8FA0EEF7FD97",` - `"args": {` - `"section": "dotnet.test.runner",` - `"key": "name",` - `"value": "Microsoft.Testing.Platform",` - `},` - `"continueOnError": true` -`}] +"postActions": [{ + "description": "Add dotnet.config", + "manualInstructions": [ { "text": "Create or update dotnet.config file'" } ], + "actionId": "597E7933-0D87-452C-B094-8FA0EEF7FD97", + "args": { + "section": "dotnet.test.runner", + "key": "name", + "value": "Microsoft.Testing.Platform", + }, + "continueOnError": true +}] ``` From 0e1055644f2fdafe22443762c8df7869befcff8c Mon Sep 17 00:00:00 2001 From: Youssef Victor Date: Fri, 5 Sep 2025 08:39:57 +0200 Subject: [PATCH 3/3] Update the "Supported in" part Updated supported versions for Post Action Registry. --- docs/Post-Action-Registry.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/Post-Action-Registry.md b/docs/Post-Action-Registry.md index 450b7929a74..e245ade7702 100644 --- a/docs/Post-Action-Registry.md +++ b/docs/Post-Action-Registry.md @@ -500,8 +500,7 @@ Creates a new `dotnet.config` file with the specified section, key, and value, o - `key (string)`: The key to set under the given section (for example, `name`). - `value (string)`: The value to set for the given key (for example, `Microsoft.Testing.Platform`). - **Supported in** : - - dotnet new3 - - dotnet new (2.0.0 or higher) + - .NET 10 SDK or later ## Example