Does this work on MacOS?
See original GitHub issueWhen 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:
- Created a year ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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 😃
@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.