From a66f296e0044f607bcfd1e57b2a7f5b5b09ed581 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Thu, 2 Jan 2025 23:24:37 +0100 Subject: [PATCH] MSTest SDK document limitations (#43717) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * MSTest SDK document limitations * Update docs/core/testing/unit-testing-mstest-sdk.md Co-authored-by: Youssef Victor * Apply suggestions from code review Co-authored-by: Youssef Victor * Update docs/core/testing/unit-testing-mstest-sdk.md Co-authored-by: Jakub Jareš * Apply suggestions from code review Co-authored-by: Youssef Victor * Fix typo in MSTest SDK documentation --------- Co-authored-by: Youssef Victor Co-authored-by: Jakub Jareš Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com> --- docs/core/testing/unit-testing-mstest-sdk.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/core/testing/unit-testing-mstest-sdk.md b/docs/core/testing/unit-testing-mstest-sdk.md index cbab8f3626fbd..61b13c5abef57 100644 --- a/docs/core/testing/unit-testing-mstest-sdk.md +++ b/docs/core/testing/unit-testing-mstest-sdk.md @@ -288,6 +288,14 @@ Here's an example update when using the `DotNetCoreCLI` task in Azure DevOps: + arguments: '--configuration Release -p:TestingPlatformCommandLineArguments="--report-trx --results-directory $(Agent.TempDirectory) --coverage"' ``` +## Known limitations + +The NuGet-provided MSBuild SDKs (including MSTest.Sdk) have limited tooling support when it comes to updating its version, meaning that the usual NuGet update and Visual Studio UI for managing NuGet packages does not work as expected. See this issue for more details: [NuGet#13127](https://github.com/NuGet/Home/issues/13127). + +> [!NOTE] +> This limitation is not specific to MSTest SDK but to any NuGet-provided MSBuild SDK. +> Dependabot will handle updating the version in the `global.json` file, but you will need to [manually update the version in the project file](https://github.com/dependabot/dependabot-core/issues/8615). + ## See also - [Test project–related properties](../project-sdk/msbuild-props.md#test-projectrelated-properties)