Skip to content

Commit

Permalink
Downgrade .NET 8 sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeRobich committed Dec 30, 2024
1 parent 073d39f commit 9a86cdb
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 43 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

name: 'Build'
name: "Build"
env:
DotNetVersion: "9.0.101"
DotNetVersion2: "8.0.307"
DotNetVersion2: "8.0.303"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand All @@ -19,7 +18,7 @@ on:
- master
- feature/*
tags:
- '*'
- "*"
workflow_dispatch:
jobs:
build:
Expand All @@ -28,13 +27,13 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-20.04, windows-2022, macos-14]
name: 'Build'
name: "Build"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
clean: 'false'
fetch-depth: '0'
clean: "false"
fetch-depth: "0"

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
Expand Down Expand Up @@ -67,37 +66,37 @@ jobs:
continue-on-error: true
if: ${{ always() }}
with:
name: 'logs - ${{ github.workflow }} ${{ matrix.os }}'
path: '${{ env.Artifacts }}/logs/'
name: "logs - ${{ github.workflow }} ${{ matrix.os }}"
path: "${{ env.Artifacts }}/logs/"

- name: ⬆ Publish Packages
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'packages'
path: '${{ env.Artifacts }}/package/'
name: "packages"
path: "${{ env.Artifacts }}/package/"

- name: ⬆ Publish Deployment
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'deployment'
path: '${{ env.Artifacts }}/deployment/'
name: "deployment"
path: "${{ env.Artifacts }}/deployment/"

- name: ⬆ Publish NuGet
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'nuget'
path: '${{ env.Artifacts }}/nuget/'
name: "nuget"
path: "${{ env.Artifacts }}/nuget/"

- name: ⬆ Publish Scripts
uses: actions/upload-artifact@v4
continue-on-error: true
if: ${{ always() }}
with:
name: 'scripts - ${{ matrix.os }}'
path: '${{ env.Artifacts }}/scripts/'
name: "scripts - ${{ matrix.os }}"
path: "${{ env.Artifacts }}/scripts/"
17 changes: 8 additions & 9 deletions .github/workflows/tests-net6.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

name: 'Tests net6.0'
name: "Tests net6.0"
env:
DotNetVersion: "9.0.101"
DotNetVersion2: "8.0.307"
DotNetVersion2: "8.0.303"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand All @@ -19,7 +18,7 @@ on:
- master
- feature/*
tags:
- '*'
- "*"
workflow_dispatch:
jobs:
build:
Expand All @@ -31,13 +30,13 @@ jobs:
testProjects:
- OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Tests,OmniSharp.Cake.Tests
- OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Tests,OmniSharp.Http.Tests
name: 'Test'
name: "Test"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
clean: 'false'
fetch-depth: '0'
clean: "false"
fetch-depth: "0"

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
Expand Down Expand Up @@ -78,5 +77,5 @@ jobs:
continue-on-error: true
if: ${{ always() }}
with:
name: 'logs - ${{ github.workflow }} ${{ matrix.os }}'
path: '${{ env.Artifacts }}/logs/'
name: "logs - ${{ github.workflow }} ${{ matrix.os }}"
path: "${{ env.Artifacts }}/logs/"
17 changes: 8 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

name: 'Tests'
name: "Tests"
env:
DotNetVersion: "9.0.101"
DotNetVersion2: "8.0.307"
DotNetVersion2: "8.0.303"
DotNetVersion3: "7.0.410"
DotNetVersion4: "6.0.203" # This is the last version Mono supports. It is used for our Mono CI tests.
NuGetVersion: "6.5.0"
Expand All @@ -19,7 +18,7 @@ on:
- master
- feature/*
tags:
- '*'
- "*"
workflow_dispatch:
jobs:
build:
Expand All @@ -31,13 +30,13 @@ jobs:
testProjects:
- OmniSharp.MSBuild.Tests,OmniSharp.Roslyn.CSharp.Tests,OmniSharp.DotNetTest.Tests,OmniSharp.Cake.Tests
- OmniSharp.Lsp.Tests,OmniSharp.Script.Tests,OmniSharp.Tests,OmniSharp.Stdio.Tests,OmniSharp.Http.Tests
name: 'Test'
name: "Test"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
clean: 'false'
fetch-depth: '0'
clean: "false"
fetch-depth: "0"

- name: Setup NuGet.exe
uses: nuget/setup-nuget@v1
Expand Down Expand Up @@ -78,5 +77,5 @@ jobs:
continue-on-error: true
if: ${{ always() }}
with:
name: 'logs - ${{ github.workflow }} ${{ matrix.os }}'
path: '${{ env.Artifacts }}/logs/'
name: "logs - ${{ github.workflow }} ${{ matrix.os }}"
path: "${{ env.Artifacts }}/logs/"
2 changes: 1 addition & 1 deletion .pipelines/init.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
parameters:
# Configuration: Release
Verbosity: Normal
DotNetVersion: "8.0.307"
DotNetVersion: "8.0.303"
CakeVersion: "1.1.0"
NuGetVersion: "5.7.0"
MonoVersion: ""
Expand Down
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ resources:

variables:
Verbosity: Diagnostic
DotNetVersion: "8.0.307"
DotNetVersion: "8.0.303"
CakeVersion: "4.2.0"
NuGetVersion: "6.5.0"
GitVersionVersion: "5.0.1"
Expand Down
2 changes: 1 addition & 1 deletion build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"DotNetVersions": [
"6.0.203",
"7.0.410",
"8.0.307",
"8.0.303",
"9.0.101"
],
"RequiredMonoVersion": "6.6.0",
Expand Down
4 changes: 2 additions & 2 deletions global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"sdk": {
"version": "8.0.307",
"version": "8.0.303",
"rollForward": "latestMinor"
}
}
}
2 changes: 1 addition & 1 deletion test-assets/test-projects/Net80Project/global.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"sdk": {
"version": "8.0.307"
"version": "8.0.303"
}
}
2 changes: 1 addition & 1 deletion tests/OmniSharp.MSBuild.Tests/ProjectLoadListenerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public async Task The_correct_sdk_version_is_emitted_NET8()
using var testProject = await TestAssets.Instance.GetTestProjectAsync("Net80Project");
using var host = CreateMSBuildTestHost(testProject.Directory, emitter.AsExportDescriptionProvider(LoggerFactory));
Assert.Single(emitter.ReceivedMessages);
Assert.Equal(GetHashedFileExtension("8.0.307"), emitter.ReceivedMessages[0].SdkVersion);
Assert.Equal(GetHashedFileExtension("8.0.303"), emitter.ReceivedMessages[0].SdkVersion);
}

[ConditionalFact(typeof(DotnetRuntimeOnly))]
Expand Down
2 changes: 1 addition & 1 deletion tests/OmniSharp.Tests/DotNetCliServiceFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace OmniSharp.Tests
{
public class DotNetCliServiceFacts : AbstractTestFixture
{
private const string DotNetVersion = "8.0.307";
private const string DotNetVersion = "8.0.303";
private int Major { get; }
private int Minor { get; }
private int Patch { get; }
Expand Down

0 comments on commit 9a86cdb

Please sign in to comment.