Skip to content

Commit f97ba36

Browse files
authored
Set useGlobalMono 'auto' meaning back to 'never' (#4130)
1 parent dafa51b commit f97ba36

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Known Issues in 1.23.4
1+
## Known Issues in 1.23.5
22

3+
* For Mono-based development (e.g. Unity) that requires full .NET framework, you need to set `"omnisharp.useGlobalMono": "always"`. This is needed until Mono [upgrades their bundled MSBuild version](https://github.com/mono/mono/issues/20250)
34
* Known limitations with the preview Razor (cshtml) language service to be addressed in a future release:
45
* Only ASP.NET Core projects are supported (no support for ASP.NET projects)
56
* Limited support for formatting
@@ -10,7 +11,10 @@
1011
* Renaming symbol fails within a file that had recently been renamed without saving changes.
1112
* As a workaround, make an edit within the file before using Rename Symbol.
1213

13-
## 1.23.4 (Not yet released)
14+
## 1.23.5 (Not yet released)
15+
* Set meaning of UseGlobalMono "auto" to "never" since Mono 6.12.0 still ships with MSBuild 16.7 (PR: [#4130](https://github.com/OmniSharp/omnisharp-vscode/pull/4130))
16+
17+
## 1.23.4 (October, 19, 2020)
1418
* Use incremental changes to update language server (PR: [#4088](https://github.com/OmniSharp/omnisharp-vscode/pull/4088))
1519
* Set meaning of UseGlobalMono "auto" to "always" now that Mono 6.12.0 ships with MSBuild 16.8 (PR: [#4115](https://github.com/OmniSharp/omnisharp-vscode/pull/4115))
1620
* Updated OmniSharp to 1.37.3

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ The C# extension is powered by [OmniSharp](https://github.com/OmniSharp/omnishar
2525
The .NET 5 SDK requires version 16.8 of MSBuild.
2626

2727
For Windows users who have Visual Studio installed, this means you will need to be on the latest Visual Studio 16.8 Preview.
28-
For MacOS and Linux users who have Mono installed, this means you will need to be on the latest stable Mono (6.12.0).
28+
For MacOS and Linux users who have Mono installed, this means you will need to set `omnisharp.useGlobalMono` to `never` until a version of Mono ships with MSBuild 16.8.
29+
30+
## What's new in 1.23.5
31+
- Set meaning of UseGlobalMono "auto" to "never" since Mono 6.12.0 still ships with MSBuild 16.7 (PR: [#4130](https://github.com/OmniSharp/omnisharp-vscode/pull/4130))
2932

3033
## What's new in 1.23.4
3134
- Use incremental changes to update language server (PR: [#4088](https://github.com/OmniSharp/omnisharp-vscode/pull/4088))

src/omnisharp/OmniSharpMonoResolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export class OmniSharpMonoResolver implements IMonoResolver {
4646
return monoInfo;
4747
}
4848
else if (options.useGlobalMono === "auto" && isValid) {
49-
return monoInfo;
49+
// While waiting for Mono to ship with a MSBuild version 16.8 or higher, we will treat "auto"
50+
// as "Use included Mono".
51+
// return monoInfo;
5052
}
5153

5254
return undefined;

test/unitTests/omnisharp/OmniSharpMonoResolver.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ suite(`${OmniSharpMonoResolver.name}`, () => {
2424
const higherMonoVersion = "6.6.0";
2525

2626
// Sets the meaning of UseGlobalMono "auto". When false, "auto" means "never".
27-
const autoMeansAlways = true;
27+
const autoMeansAlways = false;
2828

2929
const getMono = (version: string) => async (env: NodeJS.ProcessEnv) => {
3030
getMonoCalled = true;

0 commit comments

Comments
 (0)