question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Does this work on MacOS?

See original GitHub issue

When I do dotnet publish for the Hello World sample on Window, everything works, and the UMD library is published. When I run it on a Mac, I get error CS8795: Partial method 'Program.GetHostName()' must have an implementation part because it has accessibility modifiers.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
promontiscommented, Oct 3, 2022

The error was something like “An instance of analyzer Generator.SourceGenerator cannot be created” and it indeed was referring to the Microsoft.CodeAnalysis dll. Yesterday I installed .NET 7 SDK and I saw Omnisharp has picked that up as the running SDK. It probably works with SDK 6.0.300 and up. If you switch to 4.3, that minimum SDK version will probably also increase.

See also https://github.com/Elringus/DotNetJS/pull/92 were I added a couple of FAQ lines, so that other people might also discover this sooner 😃

1reaction
promontiscommented, Oct 3, 2022

@Elringus The problem was indeed with source generation.

The problem was that I required a newer .NET 6 SDK. From the OmniSharp output I was using the 6.0.2xx SDKs which align with VS 17.1. The source generator is trying to load Roslyn 4.2 dependencies which align with VS 17.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

macOS - Compatibility - Apple
With macOS, you can use Microsoft Office, connect to most printers and cameras, join PC networks, and even run Windows.
Read more >
macOS compatibility: What OS can my Mac run? - Macworld
Officially, the operating system that was available on your Mac at the time that you bought it is the oldest version of macOS...
Read more >
How to Determine Which Apps may or may not work in macOS ...
How to Determine Which Apps may or may not work in macOS Big Sur · Choose "About This Mac" · Click on "System...
Read more >
Run Windows on Mac - Parallels Desktop 18 Virtual Machine ...
Choose your View Make Windows invisible while still using its applications in Coherence™ Mode, or if you're new to Mac, you can set...
Read more >
Remote Desktop Software for macOS - AnyDesk
The AnyDesk macOS remote desktop client works seamlessly with any Mac computer running Apple's latest operating system or older versions.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found