Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(dotnet 8): Update dotnet runtime version from 6 to 8 #2851

Merged
merged 8 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/integration-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.x
dotnet-version: 8.x
- name: Restore vstest
run: dotnet restore --packages .vstest
working-directory: ${{ github.workspace }}/src/Stryker.Core/Stryker.Core/ToolHelpers/
Expand Down
24 changes: 12 additions & 12 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ stages:
displayName: Run Sonar Analysis
dependsOn: []
steps:
- task: UseDotNet@2.207.2
displayName: 'Use dotnet 6'
- task: UseDotNet@2
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- template: pipeline-templates/populate-cache-steps.yml
- task: SonarCloudPrepare@1
inputs:
Expand All @@ -61,7 +61,7 @@ stages:
projectKey: 'stryker-net'
projectName: 'Stryker .NET'
projectVersion: '$(PackageVersion)'
- task: DotNetCoreCLI@2.210.0
- task: DotNetCoreCLI@2
displayName: 'Run unit tests'
inputs:
command: test
Expand All @@ -78,9 +78,9 @@ stages:
timeoutInMinutes: 240
steps:
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- task: DotNetCoreCLI@2
displayName: 'Install dotnet-stryker'
inputs:
Expand All @@ -98,9 +98,9 @@ stages:
timeoutInMinutes: 240
steps:
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- task: DotNetCoreCLI@2
displayName: 'Install dotnet-stryker'
inputs:
Expand Down Expand Up @@ -130,9 +130,9 @@ stages:
- checkout: self
- template: pipeline-templates/populate-cache-steps.yml
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- task: DotNetCoreCLI@2
displayName: 'Restore vstest binaries'
inputs:
Expand Down Expand Up @@ -284,9 +284,9 @@ stages:
steps:
- template: pipeline-templates/populate-cache-steps.yml
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- task: DotNetCoreCLI@2
displayName: 'Restore vstest binaries'
inputs:
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ custom_edit_url: https://github.com/stryker-mutator/stryker-net/edit/master/docs

Stryker is installed using the dotnet cli as a [dotnet tool](https://docs.microsoft.com/en-us/dotnet/core/tools/global-tools)

Stryker requires the dotnet 6.0 runtime or newer: [Install dotnet](https://dotnet.microsoft.com/download)
Stryker requires the dotnet 8 runtime or newer: [Install dotnet](https://dotnet.microsoft.com/download)

\* Note: Your application does not need to target dotnet 6.0 or newer. You only need the runtime installed so stryker can run.
\* Note: Your application does not need to target dotnet 8 or newer. You only need the runtime installed so stryker can run.

## Dotnet framework specific
Nuget is required for dotnet framework. Follow the instructions at [Install nuget](https://docs.microsoft.com/en-us/nuget/install-nuget-client-tools#windows) including adding nuget to the path. Otherwise stryker will not be able to find and use nuget.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net6.0": {
"FSharp.Core": {
"type": "Direct",
"requested": "[6.0.7, )",
"resolved": "6.0.7",
"contentHash": "e6wGrq5smV3Yk2fBE/Y0nBG5oFyF59k5Je0a0QDydUpg6liyaafGjD3xvutciKepCP2knspZ/sWViC/F1OyyQQ=="
"requested": "[8.0.100, )",
"resolved": "8.0.100",
"contentHash": "ZOVZ/o+jI3ormTZOa28Wh0tSRoyle1f7lKFcUN61sPiXI7eDZu8eSveFybgTeyIEyW0ujjp31cp7GOglDgsNEg=="
},
"Microsoft.NET.Test.Sdk": {
"type": "Direct",
Expand Down Expand Up @@ -110,7 +110,7 @@
"library.fsharp": {
"type": "Project",
"dependencies": {
"FSharp.Core": "[6.0.7, )"
"FSharp.Core": "[8.0.100, )"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"net6.0": {
"FSharp.Core": {
"type": "Direct",
"requested": "[6.0.7, )",
"resolved": "6.0.7",
"contentHash": "e6wGrq5smV3Yk2fBE/Y0nBG5oFyF59k5Je0a0QDydUpg6liyaafGjD3xvutciKepCP2knspZ/sWViC/F1OyyQQ=="
"requested": "[8.0.100, )",
"resolved": "8.0.100",
"contentHash": "ZOVZ/o+jI3ormTZOa28Wh0tSRoyle1f7lKFcUN61sPiXI7eDZu8eSveFybgTeyIEyW0ujjp31cp7GOglDgsNEg=="
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"targetproject": {
"type": "Project",
"dependencies": {
"Library": "[3.13.2, )"
"Library": "[1.0.0, )"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"targetproject": {
"type": "Project",
"dependencies": {
"Library": "[3.13.2, )"
"Library": "[1.0.0, )"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion integrationtest/ValidationProject/Validation.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>

Expand Down
4 changes: 2 additions & 2 deletions pipeline-templates/prepare-integration-test-steps.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
steps:
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x

- task: DotNetCoreCLI@2
displayName: 'Run unit tests'
Expand Down
4 changes: 2 additions & 2 deletions pipeline-templates/update-package-lock-files-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ stages:
git fetch
git checkout $(system.pullRequest.sourceBranch)
- task: UseDotNet@2
displayName: 'Use dotnet 6'
displayName: 'Use dotnet'
inputs:
version: 6.x
version: 8.x
- task: DotNetCoreCLI@2
displayName: 'Update stryker cli and stryker core lock files'
inputs:
Expand Down
2 changes: 1 addition & 1 deletion src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project>

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<PropertyGroup>
Expand Down
16 changes: 5 additions & 11 deletions src/Stryker.CLI/Stryker.CLI.UnitTest/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"dependencies": {
"net6.0": {
"net8.0": {
"coverlet.collector": {
"type": "Direct",
"requested": "[6.0.0, )",
Expand Down Expand Up @@ -291,10 +291,7 @@
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g=="
},
"Microsoft.NET.StringTools": {
"type": "Transitive",
Expand Down Expand Up @@ -658,10 +655,7 @@
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ=="
},
"System.ComponentModel.Annotations": {
"type": "Transitive",
Expand Down Expand Up @@ -1644,8 +1638,8 @@
"ShellProgressBar": "[5.2.0, )",
"Spectre.Console": "[0.48.0, )",
"Spectre.Console.Analyzer": "[0.48.0, )",
"Stryker.DataCollector": "[3.13.2, )",
"Stryker.RegexMutators": "[3.13.2, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.RegexMutators": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[20.0.15, )"
}
},
Expand Down
16 changes: 5 additions & 11 deletions src/Stryker.CLI/Stryker.CLI/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"dependencies": {
"net6.0": {
"net8.0": {
"DotNet.ReproducibleBuilds": {
"type": "Direct",
"requested": "[1.1.1, )",
Expand Down Expand Up @@ -210,10 +210,7 @@
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g=="
},
"Microsoft.NET.StringTools": {
"type": "Transitive",
Expand Down Expand Up @@ -560,10 +557,7 @@
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ=="
},
"System.ComponentModel.Annotations": {
"type": "Transitive",
Expand Down Expand Up @@ -1484,8 +1478,8 @@
"ShellProgressBar": "[5.2.0, )",
"Spectre.Console": "[0.48.0, )",
"Spectre.Console.Analyzer": "[0.48.0, )",
"Stryker.DataCollector": "[3.13.2, )",
"Stryker.RegexMutators": "[3.13.2, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.RegexMutators": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[20.0.15, )"
}
},
Expand Down
16 changes: 5 additions & 11 deletions src/Stryker.Core/Stryker.Core.UnitTest/packages.lock.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 2,
"dependencies": {
"net6.0": {
"net8.0": {
"coverlet.collector": {
"type": "Direct",
"requested": "[6.0.0, )",
Expand Down Expand Up @@ -318,10 +318,7 @@
"Microsoft.Extensions.Primitives": {
"type": "Transitive",
"resolved": "8.0.0",
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "bXJEZrW9ny8vjMF1JV253WeLhpEVzFo1lyaZu1vQ4ZxWUlVvknZ/+ftFgVheLubb4eZPSwwxBeqS1JkCOjxd8g=="
},
"Microsoft.NET.StringTools": {
"type": "Transitive",
Expand Down Expand Up @@ -652,10 +649,7 @@
"System.Collections.Immutable": {
"type": "Transitive",
"resolved": "7.0.0",
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ==",
"dependencies": {
"System.Runtime.CompilerServices.Unsafe": "6.0.0"
}
"contentHash": "dQPcs0U1IKnBdRDBkrCTi1FoajSTBzLcVTpjO4MBCMC7f4pDOIPzgBoX8JjG7X6uZRJ8EBxsi8+DR1JuwjnzOQ=="
},
"System.Configuration.ConfigurationManager": {
"type": "Transitive",
Expand Down Expand Up @@ -1611,8 +1605,8 @@
"ShellProgressBar": "[5.2.0, )",
"Spectre.Console": "[0.48.0, )",
"Spectre.Console.Analyzer": "[0.48.0, )",
"Stryker.DataCollector": "[3.13.2, )",
"Stryker.RegexMutators": "[3.13.2, )",
"Stryker.DataCollector": "[1.0.0, )",
"Stryker.RegexMutators": "[1.0.0, )",
"TestableIO.System.IO.Abstractions.Wrappers": "[20.0.15, )"
}
},
Expand Down
71 changes: 0 additions & 71 deletions src/Stryker.Core/Stryker.Core/ToolHelpers/packages.lock.json

This file was deleted.

Loading
Loading