From 7214bfe87548a2fc24c04507386f74b0d3edc9e9 Mon Sep 17 00:00:00 2001 From: Sam Davidson <43768991+Sam-Davidson@users.noreply.github.com> Date: Thu, 19 Mar 2026 19:01:55 -0700 Subject: [PATCH] Update command for adding project reference The old "reference add" doesn't work in the current version. Switching it to "add reference" fixes the issue. --- docs/core/testing/unit-testing-csharp-with-mstest.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/core/testing/unit-testing-csharp-with-mstest.md b/docs/core/testing/unit-testing-csharp-with-mstest.md index 269f59ef5d7d1..9c8f94d691c89 100644 --- a/docs/core/testing/unit-testing-csharp-with-mstest.md +++ b/docs/core/testing/unit-testing-csharp-with-mstest.md @@ -75,7 +75,7 @@ The test project requires other packages to create and run unit tests. `dotnet n Add the `PrimeService` class library as another dependency to the project. Use the [`dotnet reference add`](../tools/dotnet-reference-add.md) command: ```dotnetcli -dotnet reference add ../PrimeService/PrimeService.csproj +dotnet add reference ../PrimeService/PrimeService.csproj ``` You can see the entire file in the [samples repository](https://github.com/dotnet/samples/blob/main/core/getting-started/unit-testing-using-mstest/PrimeService.Tests/PrimeService.Tests.csproj) on GitHub.