Skip to content

do not set mono paths in standalone mode#1656

Merged
bjorkstromm merged 3 commits intomasterfrom
bugfix/mono-standalone-monopaths
Nov 23, 2019
Merged

do not set mono paths in standalone mode#1656
bjorkstromm merged 3 commits intomasterfrom
bugfix/mono-standalone-monopaths

Conversation

@filipw
Copy link
Copy Markdown
Member

@filipw filipw commented Nov 22, 2019

Since we now run in stand alone mode on top of mono 6.4.0 and raised the global mono minimum version to 6.4.0, we should not need to set mono paths in stand alone mode anymore.

This fixes dotnet/vscode-csharp#3410 and fixes dotnet/vscode-csharp#3340 and a couple of other issues that I need to dig up (also lots of errors were reported as comments under old closed issues). In short the problem was, if you have old Mono (say 5.4.0) installed, we don't pick it as global Mono as it's < 6.4.0 and run in standalone mode. However we still set:

TargetFrameworkRootPath = /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/xbuild-frameworks
MSBuildExtensionsPath = /Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/xbuild

which causes .NET Core 3.0 to fail.

By the way, the tests explicitly avoided to set any mono paths, so any problem with this, and users reported plenty, only ever manifested itself only once running OmniSharp server in real world.

@filipw
Copy link
Copy Markdown
Member Author

filipw commented Nov 22, 2019

fixes #1650 too

Copy link
Copy Markdown
Member

@JoeRobich JoeRobich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bjorkstromm bjorkstromm merged commit 862f16f into master Nov 23, 2019
@bjorkstromm
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't add system.net to intellisense OmniSharp not fully respecting omnisharp.useGlobalMono=never in WSL remote settings

3 participants