Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions docs/Post-Action-Registry.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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** :
- .NET 10 SDK or later

## 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
}]
```
Loading