Skip to content

Commit c38e89b

Browse files
authored
Update Roslyn to 5.1.0-1.25475.3 (#2692)
2 parents 258e5d0 + 6d71ad3 commit c38e89b

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

.config/dotnet-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
"isRoot": true,
44
"tools": {
55
"cake.tool": {
6-
"version": "4.2.0",
6+
"version": "5.0.0",
77
"commands": [
88
"dotnet-cake"
99
]
1010
}
1111
}
12-
}
12+
}

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<MicrosoftTestPackageVersion>17.14.0-preview-25107-01</MicrosoftTestPackageVersion>
1111
<MSBuildPackageVersion>17.3.2</MSBuildPackageVersion>
1212
<NuGetPackageVersion>6.15.0-preview.1.86</NuGetPackageVersion>
13-
<RoslynPackageVersion>5.0.0-2.25404.8</RoslynPackageVersion>
13+
<RoslynPackageVersion>5.1.0-1.25475.3</RoslynPackageVersion>
1414
<XunitPackageVersion>2.8.1</XunitPackageVersion>
1515
</PropertyGroup>
1616

NuGet.Config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<configuration>
33
<packageSources>
44
<clear />
5-
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
5+
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
66
<add key="dotnet-tools" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" />
77
<add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
88
</packageSources>
99
<packageSourceMapping>
1010
<clear />
11-
<packageSource key="dotnet-public">
11+
<packageSource key="NuGet">
1212
<package pattern="Antlr4.*" />
1313
<package pattern="BenchmarkDotNet" />
1414
<package pattern="BenchmarkDotNet.*" />

scripts/common.cake

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#addin "nuget:?package=Newtonsoft.Json&version=11.0.2"
2-
#tool "nuget:?package=GitVersion.CommandLine&prerelease&version=5.0.1"
2+
#tool "nuget:?package=GitVersion.Tool&version=5.12.0"
33

44
#load "platform.cake"
55

@@ -200,7 +200,7 @@ public class BuildEnvironment
200200
this.ShellCommand = Platform.Current.IsWindows ? "powershell" : "bash";
201201
this.ShellArgument = Platform.Current.IsWindows ? "-NoProfile -ExecutionPolicy Bypass /Command" : "-C";
202202
this.ShellScriptFileExtension = Platform.Current.IsWindows ? "ps1" : "sh";
203-
this.MonoRuntimes = new []
203+
this.MonoRuntimes = new[]
204204
{
205205
new MonoRuntime("osx", "mono"),
206206
new MonoRuntime("linux-x86", "mono"),
@@ -211,7 +211,7 @@ public class BuildEnvironment
211211
if (Platform.Current.IsMacOS)
212212
{
213213
this.CurrentMonoRuntime = this.MonoRuntimes[0];
214-
this.BuildMonoRuntimes = new [] { this.CurrentMonoRuntime };
214+
this.BuildMonoRuntimes = new[] { this.CurrentMonoRuntime };
215215
}
216216
else if (Platform.Current.IsLinux)
217217
{

src/OmniSharp.Abstractions/Configuration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ internal static class Configuration
44
{
55
public static bool ZeroBasedIndices = false;
66

7-
public const string RoslynVersion = "5.0.0.0";
7+
public const string RoslynVersion = "5.1.0.0";
88
public const string RoslynPublicKeyToken = "31bf3856ad364e35";
99

1010
public readonly static string RoslynFeatures = GetRoslynAssemblyFullName("Microsoft.CodeAnalysis.Features");

tests/OmniSharp.Script.Tests/ScriptProjectProviderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void DefaultLanguageVersionShouldBeLatest()
1717
var scriptProjectProvider = new ScriptProjectProvider(new ScriptOptions(), new OmniSharpEnvironment(), new LoggerFactory(), true, false);
1818
var scriptProjectInfo = scriptProjectProvider.CreateProject("test.csx", Enumerable.Empty<MetadataReference>(), Path.GetTempPath(), typeof(CommandLineScriptGlobals));
1919
Assert.Equal(LanguageVersion.Latest, ((CSharpParseOptions)scriptProjectInfo.ParseOptions).SpecifiedLanguageVersion);
20-
Assert.Equal(LanguageVersion.CSharp13, ((CSharpParseOptions)scriptProjectInfo.ParseOptions).LanguageVersion);
20+
Assert.Equal(LanguageVersion.CSharp14, ((CSharpParseOptions)scriptProjectInfo.ParseOptions).LanguageVersion);
2121
}
2222
}
2323
}

0 commit comments

Comments
 (0)