-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to .NET 6 when released (for Mac M1/arm64 compatibility) #1403
Comments
My understanding (could be wrong) was that M1 was supposed to have compatibility through a transition layer. But from the output I was suspect you have the following vscode setting set to point to an SDK installation? azureResourceManagerTools.languageServer.dotnetExePath If so, please delete its value and try again. It should download .net to a private folder in vscode. |
azureResourceManagerTools.languageServer.dotnetExePath was not set I then installed .NET Core 3.1 (x64 only) manually which really upset things! Removing both versions, then removing and reinstalling the extension results in "The path returned for .net core does not exist: /usr/local/share/dotnet/dotnet" which is what caused me to install .NET 6 arm64 RC initially. Looks like I might actually have encountered the same as this issued reported against the .NET VSCode helper dotnet/vscode-dotnet-runtime#330 - namely that .NET Core 3.1 x64 doesn't seem to run on an arm64 Mac even with the Rosetta translation engine installed dotnet/runtime#44897 Looks like the resolution will need to wait until .NET 6 arm64 is final? |
When I tried to run this app on apple silicone m1 arm, I got this error: (I'm copying all the errors to make it easier for other people to search this issue and provide them workaround)
(Plugin tries to download a mac arm version - which does not exists for .net 3.x) and
As we saw the error: dotnet version To solve it, first lets do a cleanup. I used this official script: then install .net 3 runtime version from here: Finally you have to configure your vscode JSON settings, and add following line:
The first version of .net runtime which will support natively mac arm CPU will be 6. Maybe you could update your plugin to use it? Then 'VSCode extension for acquiring .NET Core Tooling' would download correct version. |
.NET 6 was release yesterday and it is a LTS version. https://dotnet.microsoft.com/platform/support/policy/dotnet-core |
We ran into technical issues getting this to work. It will probably be after the holidays before we can get to it seriously. |
any news on this? |
@bhsubra has been working on this. Are you interested in verifying a new build for us? She's OOF today but could hook you up next week. |
Yes, I have a macbook with m1 and can try to test the new build. |
@radoslawcz , could you please try the attached vsix and let us know if the issue still persists? Thanks! |
I just tested the plugin and it works properly. ARM Template Language Server starts using dotnet 6 - previously it tried to load dotnet 3 and failed. Using dotnet core executable at /Users/radek/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/6.0.1/dotnet I loaded some ARM template and resources were recognized and were clickable in the ARM template outline. I didn't experience any errors. |
@radoslawcz Thanks! We will release this soon. |
@radoslawcz , thank you! |
Anything I can do at the moment to run the extension on Apple Silicon using the macOS arm64 RC2 build of .NET6?
The text was updated successfully, but these errors were encountered: