Skip to content

Commit 5fef652

Browse files
committed
update targetFrameworks and documentation
1 parent 1f4696f commit 5fef652

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

Documentation/VSTestIntegration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
**Supported runtime versions**:
44

5-
Since version `6.0.0`
5+
Since version `8.0.0`
66

7-
* .NET Core >= 6.0
7+
* .NET Core >= 8.0
88
* .NET Framework >= 4.7.2
99

10-
As explained in quick start section, to use collectors you need to run *SDK v6.0.100* (LTS) or newer and your project file must reference `coverlet.collector` and a minimum version of `Microsoft.NET.Test.Sdk`.
10+
As explained in quick start section, to use collectors you need to run *SDK v8.0.100* (LTS) or newer and your project file must reference `coverlet.collector` and a minimum version of `Microsoft.NET.Test.Sdk`.
1111

1212
A sample project file looks like:
1313

@@ -20,7 +20,7 @@ A sample project file looks like:
2020
<!-- Minimum version 17.13.0 -->
2121
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
2222
<!-- Update this reference when new version is released -->
23-
<PackageReference Include="coverlet.collector" Version="6.0.4">
23+
<PackageReference Include="coverlet.collector" Version="8.0.1">
2424
<PrivateAssets>all</PrivateAssets>
2525
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2626
</PackageReference>
@@ -43,10 +43,10 @@ or
4343
```text
4444
dotnet publish
4545
...
46-
... -> C:\project\bin\Debug\net6.0\testdll.dll
47-
... -> C:\project\bin\Debug\net6.0\publish\
46+
... -> C:\project\bin\Debug\net8.0\testdll.dll
47+
... -> C:\project\bin\Debug\net8.0\publish\
4848
...
49-
dotnet vstest C:\project\bin\Debug\net6.0\publish\testdll.dll --collect:"XPlat Code Coverage"
49+
dotnet vstest C:\project\bin\Debug\net8.0\publish\testdll.dll --collect:"XPlat Code Coverage"
5050
```
5151

5252
As you can see in case of `vstest` verb you **must** publish project before.

test/coverlet.integration.tests/Msbuild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void TestMsbuild_CoverletOutput_Folder_FileNameExtension()
109109
public void TestMsbuild_CoverletOutput_Folder_FileNameExtension_SpecifyFramework()
110110
{
111111
using ClonedTemplateProject clonedTemplateProject = PrepareTemplateProject();
112-
string[] targetFrameworks = new string[] { "net6.0" };
112+
string[] targetFrameworks = new string[] { "net8.0" };
113113
UpdateProjectTargetFramework(clonedTemplateProject, targetFrameworks);
114114
Assert.False(clonedTemplateProject.IsMultipleTargetFramework());
115115
string framework = clonedTemplateProject.GetTargetFrameworks().Single();

test/coverlet.tests.projectsample.aspmvcrazor/coverlet.tests.projectsample.aspmvcrazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<IsPackable>false</IsPackable>
77
<IsTestProject>false</IsTestProject>

test/coverlet.tests.utils/TestUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public static BuildConfiguration GetAssemblyBuildConfiguration()
3333

3434
public static string GetAssemblyTargetFramework()
3535
{
36-
#if NET6_0
37-
return "net6.0";
36+
#if NET9_0
37+
return "net9.0";
3838
#endif
3939
#if NET8_0
4040
return "net8.0";

0 commit comments

Comments
 (0)