Skip to content

Commit 41fcf51

Browse files
Remove occurences of dotnet.config
1 parent e1353c7 commit 41fcf51

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

docs/core/testing/unit-testing-with-dotnet-test.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,14 @@ Due to these issues, .NET has introduced a new `dotnet test` mode specifically d
9191
9292
To address the issues encountered when running `dotnet test` with MTP in VSTest mode, .NET introduced a new mode in the .NET 10 SDK that's specifically designed for MTP.
9393
94-
To enable this mode, add a `dotnet.config` file to the root of the repository or solution.
95-
96-
```ini
97-
[dotnet.test.runner]
98-
name = "Microsoft.Testing.Platform"
94+
To enable this mode, add the following configuration to your `global.json` file:
95+
96+
```json
97+
{
98+
"test": {
99+
"runner": "Microsoft.Testing.Platform"
100+
}
101+
}
99102
```
100103
101104
> [!IMPORTANT]
@@ -123,7 +126,7 @@ Since this mode is specifically designed for Microsoft.Testing.Platform, neither
123126
124127
For users of MTP that are using the VSTest mode of `dotnet test`, there are few actions needed to migrate to the newer `dotnet test` experience:
125128
126-
1. Add `dotnet.config` in the root of your repository, as shown above.
129+
1. Add some configuration to your `global.json` file, as shown above.
127130
1. Remove `TestingPlatformDotnetTestSupport` MSBuild property, as it's no longer required.
128131
1. Remove `TestingPlatformCaptureOutput` and `TestingPlatformShowTestsFailure` MSBuild properties, as they are no longer used by the new `dotnet test`.
129132
1. Remove the extra `--`, for example `dotnet test -- --report-trx` should become `dotnet test --report-trx`.

docs/core/whats-new/dotnet-10/sdk.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,14 @@ A new `<ContainerImageFormat>` property allows you to explicitly set the format
215215
216216
## Support for Microsoft Testing Platform in `dotnet test`
217217
218-
Starting in .NET 10, `dotnet test` natively supports [Microsoft.Testing.Platform](../../testing/microsoft-testing-platform-intro.md). To enable this feature, add the following configuration to your *dotnet.config* file:
218+
Starting in .NET 10, `dotnet test` natively supports [Microsoft.Testing.Platform](../../testing/microsoft-testing-platform-intro.md). To enable this feature, add the following configuration to your *global.json* file:
219219
220-
```ini
221-
[dotnet.test.runner]
222-
name = "Microsoft.Testing.Platform"
220+
```json
221+
{
222+
"test": {
223+
"runner": "Microsoft.Testing.Platform"
224+
}
225+
}
223226
```
224227
225228
For more details, see [Testing with `dotnet test`](../../testing/unit-testing-with-dotnet-test.md).

0 commit comments

Comments
 (0)