Skip to content

Commit 7767485

Browse files
fhnaseerfaisalBillWagner
authored
Updating version and prompt for dotnet-coverage tool (#44954)
* Updating prompt * Update docs/core/additional-tools/dotnet-coverage.md Co-authored-by: Bill Wagner <[email protected]> * Update docs/core/additional-tools/dotnet-coverage.md Co-authored-by: Bill Wagner <[email protected]> --------- Co-authored-by: faisal <[email protected]> Co-authored-by: Bill Wagner <[email protected]>
1 parent 562ce5b commit 7767485

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

docs/core/additional-tools/dotnet-coverage.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: reference
66
---
77
# dotnet-coverage code coverage utility
88

9-
**This article applies to:** ✔️ .NET Core 3.1 SDK and later versions
9+
**This article applies to:** ✔️ .NET 8 SDK and later versions
1010

1111
## Synopsis
1212

@@ -593,9 +593,8 @@ Hello, World!
593593
If you don't want to use the `instrument` command, then the files to be instrumented can be specified using `--include-files` option as follows:
594594

595595
```console
596-
D:\examples\ConsoleApp> dotnet-coverage collect --include-files .\bin\Debug\net7.0\*.dll dotnet run
597-
Microsoft (R) Code Coverage Command Line Tool (x64)
598-
Copyright (c) Microsoft Corporation. All rights reserved.
596+
D:\examples\ConsoleApp> dotnet-coverage collect --include-files .\bin\Debug\net9.0\*.dll dotnet run
597+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
599598

600599
SessionId: 57862ec0-e512-49a5-8b66-2804174680fc
601600
Hello, World!
@@ -618,8 +617,7 @@ In this case, first binary needs to be instrumented as follows:
618617

619618
```console
620619
D:\examples\ConsoleApp> dotnet-coverage instrument .\bin\Debug\net7.0\ConsoleApp.dll
621-
Microsoft (R) Code Coverage Command Line Tool (x64)
622-
Copyright (c) Microsoft Corporation. All rights reserved.
620+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
623621

624622
Input file successfully instrumented.
625623
```
@@ -628,8 +626,7 @@ Then you can collect code coverage as follows:
628626

629627
```console
630628
D:\examples\ConsoleApp> dotnet-coverage collect .\bin\Debug\net7.0\ConsoleApp.exe
631-
Microsoft (R) Code Coverage Command Line Tool (x64)
632-
Copyright (c) Microsoft Corporation. All rights reserved.
629+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
633630

634631
SessionId: a09e6bef-ff64-4b5f-8bb8-fc495ebb50ba
635632
Hello, World!
@@ -642,8 +639,7 @@ In this case, you can completely separate coverage collection from running your
642639

643640
```console
644641
D:\examples\ConsoleApp> dotnet-coverage instrument --session-id 73c34ce5-501c-4369-a4cb-04d31427d1a4 .\bin\Debug\net7.0\ConsoleApp.dll
645-
Microsoft (R) Code Coverage Command Line Tool (x64)
646-
Copyright (c) Microsoft Corporation. All rights reserved.
642+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
647643

648644
Input file successfully instrumented.
649645
```
@@ -655,8 +651,7 @@ In the second step, you need to start coverage collector as follows:
655651

656652
```console
657653
D:\examples\ConsoleApp> dotnet-coverage collect --session-id 73c34ce5-501c-4369-a4cb-04d31427d1a4 --server-mode
658-
Microsoft (R) Code Coverage Command Line Tool (x64)
659-
Copyright (c) Microsoft Corporation. All rights reserved.
654+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
660655

661656
SessionId: 73c34ce5-501c-4369-a4cb-04d31427d1a4
662657
```
@@ -672,8 +667,7 @@ Finally, the collector can be closed as follows:
672667

673668
```console
674669
D:\examples\ConsoleApp> dotnet-coverage shutdown 73c34ce5-501c-4369-a4cb-04d31427d1a4
675-
Microsoft (R) Code Coverage Command Line Tool (x64)
676-
Copyright (c) Microsoft Corporation. All rights reserved.
670+
dotnet-coverage v17.14.1.0 [win-x64 - .NET 9.0.2]
677671
```
678672

679673
### Settings

0 commit comments

Comments
 (0)