Browse Source

Final fixups

pull/3119/head
Siegfried Pammer 2 years ago
parent
commit
c2f17d4804
  1. 2
      .github/workflows/build-frontends.yml
  2. 2
      .github/workflows/build-ilspy.yml
  3. 2
      .github/workflows/codeql-analysis.yml
  4. 8
      ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs

2
.github/workflows/build-frontends.yml

@ -17,7 +17,7 @@ jobs: @@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
dotnet-quality: 'ga'
- name: Install dependencies
run: dotnet restore ILSpy.XPlat.slnf

2
.github/workflows/build-ilspy.yml

@ -29,7 +29,7 @@ jobs: @@ -29,7 +29,7 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
dotnet-quality: 'ga'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.3

2
.github/workflows/codeql-analysis.yml

@ -30,7 +30,7 @@ jobs: @@ -30,7 +30,7 @@ jobs:
- uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
dotnet-quality: 'preview'
dotnet-quality: 'ga'
- name: Build
run: dotnet build ILSpy.XPlat.slnf --configuration Release

8
ICSharpCode.Decompiler.Tests/TestCases/Pretty/Switch.cs

@ -1444,7 +1444,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -1444,7 +1444,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
public static bool DoNotRemoveAssignmentBeforeSwitch(string x, out ConsoleKey key)
{
#if NET40 || !ROSLYN
key = (ConsoleKey)0;
#else
key = ConsoleKey.None;
#endif
switch (x)
{
case "A":
@ -1457,7 +1461,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty @@ -1457,7 +1461,11 @@ namespace ICSharpCode.Decompiler.Tests.TestCases.Pretty
key = ConsoleKey.C;
break;
}
#if NET40 || !ROSLYN
return key != (ConsoleKey)0;
#else
return key != ConsoleKey.None;
#endif
}
public static void Issue1767(string s)

Loading…
Cancel
Save