If Windows performance seems slow, try the following. Assigning more than half of CPUs for the virtual machine may cause performance degradation for. If you use Parallels Desktop 16 or earlier Parallels Desktop versions, shut down your VM (Actions > Shut down) > open its configuration > switch to Hardware tab > CPU & Memory > make sure that the number of processors (CPUs) and the amount of memory do not exceed the recommended values. Thanks, Aaron!Assigning more than half of CPUs for the virtual machine may cause performance degradation for both Mac and VM. We’ve invited Aaron LaBeau, an MVP and seasoned Mac developer, to share his experiences. NET and Visual Studio for Mac are working for our customers in the real world.Apple is now shipping several models of computers all with M1 processors. The M1 processor is a custom ARM 64-bit processor and is based on the popular A series processors that Apple has been designing and shipping in mobile devices for years. Please try the preview and let us know your experiences!Apple’s recent news of switching processors from the Intel x86 family of processors to custom processors has caused a lot of talk among the development community.Visual Studio for Mac runs on M1 thanks to a translation layer called Rosetta 2 which translates x86 instructions to ARM64. NET applications and services that run in Azure.How does Visual Studio for Mac run on M1? First, keep in mind that I don’t work for Microsoft or Apple, and I’m just sharing my personal experience here. When I tell developers “Hey I’m running everything on a M1 Mac Mini,” I get a lot of questions about support of various development tools used to build. NET tools and my experience has been pretty good so far… for the most part.Large complex tools with many dependencies will take time to get ARM64 support fully working. With any massive change in technology there will be some hiccups. The performance feels the same as running on my 2019 MacBook Pro 16” with a i9 Processor fully loaded with max RAM and storage, maybe even faster at times.You’ve seen me state “for the most part” several times so far.
Parallels Lags Software And ToolsI’ve worked on multiple projects and a few Blazor apps and I’ve been able to open them and debug without issues.When you go to download Edge, select the “Mac with Apple chip” version if you have M1 processor and you will get an optimized version of the browser.As you can see from my screenshot below, I have Microsoft Edge selected to use to debug with and I have the Blazing Pizza app debugging in Visual Studio for Mac without issues.For those web developers using other open-source software and tools, Homebrew now supports the M1 processor. Web DevelopersOut of the box Visual Studio for Mac runs great for ASP.NET development of APIs and Razor Webpages. I would like to share with you my experiences below. Most of it is around things I’ve had not work and then had to research fixes. If you wanted to support X86 and use the Rosetta 2 translation layer you could install it with: arch -x86_64 brew install nodeEven running complex projects, like a project based on Jason Taylor’s Clean Architecture. For example, until the Node.js v16.0.0 release (which included ARM support), I used the following syntax to tell Homebrew to install node with native M1 processor support: arch -arm64 brew install nodeThis would tell brew to install the arm version of node. You can tell the command line which architecture to use when running commands. Digital book wont download on amazon kindle app for macTo open another Terminal tab just click the button on the right side of the window.I can’t express how much this has helped my workflow given I still use the command line for a lot of things like git. I don’t know which developer worked on the terminal plugin, but they deserve a virtual high five for this because it’s one of my favorite features in Visual Studio for Mac.Also, did you know that you can open more than one Terminal window in Visual Studio for Mac? This is something I think most people look over and I love that I can have more than one tab open at a time. The terminal even supports all my custom fonts and colors I have setup in zsh. For this, I simply followed the directions from the GitHub repo and thanks to the awesome integrated Terminal support in Visual Studio for Mac I launched the Angular Web App which is node based right within the Terminal in Visual Studio for Mac. The Docker Desktop client now runs on an M1 Macs, but most of the docker images have not been updated for the ARM64 architecture. It’s also very fast for an emulator – way faster than the emulators I used to use in the past and with Hot Reload working I feel like I can do very rapid mobile development.The one minor pain is Docker support. Using the AVD Manager setup a new emulator using the arm64 imageOnce I did this – Visual Studio for Mac saw the device and I could use it to push builds and debug without issues. Installing Android Studio from the Android Developer Portal (I use this for complex profiling and debugging of mobile apps) NET expert, Podcast host, and internet streamer James Montemagno has a great article already up on how to work around this which you can read in his blog post on how he setup his M1 Mac for Xamarin DevelopmentI would note I did a different work around to get my Android emulators working which involved the following: SummaryWhile the first couple of weeks trying to develop software on a M1 Mac Mini was painful, the entire Microsoft team of development tools have come together to resolve the major problems developing. You can read more about this in the release notes. Honorable Mention: Visual Studio CodeFor those that also use Visual Studio Code – there is now support for ARM64 and the latest build should have universal support. I do have a work around though – Azure SQL Edge has been ported to ARM64 and thus can run on Docker for M1 on your Mac.A sample on how to get started using this Docker image is: docker run -e "ACCEPT_EULA=1" -e -e "MSSQL_PID=Developer" -e "MSSQL_USER=SA" -p 1433:1433 -d -name=sql mcr.microsoft.com/azure-sql-edgeOnce running you can use Azure Data Studio to connect to the docker image running on localhost (127.0.0.1).I’ve used Azure SQL Edge with Entity Framework Core and EF 5 for testing my ASP.NET Core projects and it works fine on my machine with a standard connection string. Visual Studio for the Mac runs great on the M1 processor, I’m able to develop using a wide range of technology stacks, and I really like that I don’t hear my fan start to run every time I start a docker image.
0 Comments
Leave a Reply. |
AuthorJean ArchivesCategories |