Closed MuhammadAliYousaf closed 2 years ago
Not ported the extension to Visual Studio for Mac 17.0 yet.
The only extensions I have ported to 17.0 are available here - https://github.com/mrward/monodevelop-addins/tree/gh-pages/17.0
NuGet extensions 0.28 has been published for Visual Studio for Mac 17.0. It is available from the extensions manager in VS Mac or from the releases page - https://github.com/mrward/monodevelop-nuget-extensions/releases/tag/v0.28-vsm17.0
Thats great. Thanks.
But when I installed it I am getting following error.
Now, I did installed .NET Core version 3.1 runtime but you know its for x64 whereas I am using it on arm64. See my installed runtimes in the following images.
Installed sdks for x64.
Installed sdks for arm64.
Any help please.
Not done any testing on Arm64 since I do not have an Apple Silicon machine.
The addin uses the configured dotnet path and on Arm64 there is no .NET 3.1 arm64 runtime so this is going to fail.
You can try configuring VS Mac to use the x64 dotnet in preferences - Build and debug - SDK Locations - .NET Core, however not sure that will work - VS Mac might start failing to build projects there.
Currently I am working on moving the PowerShell hosting so it is in process. Since VS Mac 17.0 runs on .NET 6 I can host PowerShell directly inside VS Mac instead of having a separate console host. In theory this should be another way to fix the problem - assuming the various PowerShell dylibs work OK on Arm64.
Can you please guide me how to configure VS Mac to use the x64 dotnet in preferences?
Also, waiting for the update in which you will host PowerShell directly inside VS Mac instead of having a separate console host.
Also, I have Mac M1 do let me know for any help. Thanks.
Preferences - Build and Debug - SDK Locations - .NET Core - .NET Core Command line. Path would be /usr/local/share/dotnet/x64/dotnet' - however I think this will break the build since VS Mac assumes this is an arm64 dotnet being used.
Awesome, it's working perfectly. Thank you.
Again, if you want to test anything on M1 please feel free to engage me. Thanks.
A new NuGet extensions version 0.29 has been published for VS Mac 17.0. Not sure how long it will take before it shows up in the extensions manager.
This new version hosts PowerShell in process, instead of using a separate console app.
Updated from PowerShell v6 to v7 which supports being run on Apple Silicon (M1) machines. Tested it on both Intel and M1.
It's not working on Visual Studio 2022 Preview. Version 17.0 Preview build 7303 Any update on that?