Skip to content

Commit 35b263e

Browse files
authored
Update Roslyn to .NET 9 (#7946)
2 parents ae73490 + 1804c56 commit 35b263e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ This section shows how to set up local Razor or Roslyn language servers for debu
7373
1. Clone the [Roslyn repository](https://github.com/dotnet/roslyn). This repository contains the Roslyn server implementation.
7474
2. Follow the build instructions provided in the repository.
7575

76-
The server DLL is typically at `$roslynRepoRoot/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net8.0/Microsoft.CodeAnalysis.LanguageServer.dll`, but this may vary based on the built configuration.
76+
The server DLL is typically at `$roslynRepoRoot/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net9.0/Microsoft.CodeAnalysis.LanguageServer.dll`, but this may vary based on the built configuration.
7777

7878
#### Razor
7979

@@ -116,7 +116,7 @@ In your workspace `settings.json` file, add the following lines:
116116

117117
```json
118118
"dotnet.server.waitForDebugger": true,
119-
"dotnet.server.path": "<roslynRepoRoot>/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net8.0/Microsoft.CodeAnalysis.LanguageServer.dll"
119+
"dotnet.server.path": "<roslynRepoRoot>/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net9.0/Microsoft.CodeAnalysis.LanguageServer.dll"
120120
```
121121

122122
Replace <roslynRepoRoot> with the actual path to your Roslyn repository.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
},
3939
"defaults": {
40-
"roslyn": "4.14.0-1.25074.7",
40+
"roslyn": "4.14.0-1.25078.4",
4141
"omniSharp": "1.39.12",
4242
"razor": "9.0.0-preview.25064.4",
4343
"razorOmnisharp": "7.0.0-preview.23363.1",

src/lsptoolshost/dotnetRuntimeExtensionResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import { CSharpExtensionId } from '../constants/csharpExtensionId';
1414
import { readFile } from 'fs/promises';
1515
import { IDotnetAcquireResult, IDotnetFindPathContext } from './dotnetRuntimeExtensionApi';
1616

17-
const DotNetMajorVersion = '8';
17+
const DotNetMajorVersion = '9';
1818
const DotNetMinorVersion = '0';
19-
const DotNetPatchVersion = '10';
19+
const DotNetPatchVersion = '1';
2020
export const DotNetRuntimeVersion = `${DotNetMajorVersion}.${DotNetMinorVersion}.${DotNetPatchVersion}`;
2121

2222
/**

0 commit comments

Comments
 (0)