Microsoft previews Visual Studio 2022 for Mac, but why bother when VS Code runs just fine on Apple hardware?

.NET works in mysterious ways

Microsoft has pushed out another preview of Visual Studio 2022 for Mac, stating that it provides a "truly native macOS experience."

The Mac version, like its Windows cousin, is needed for developing with the new .NET 6.0 SDK with C# 10, F# 6.0, and so on. As such, it is late.

"We plan to release the GA version of Visual Studio 2022 for Mac v17.0 in the first half of 2022," said program manager Jordan Matthiesen in a blog post. He attributed the delay to the fact that "this is a major architectural change," the change being more native code in the user interface.

In a presentation at yesterday's virtual VS 2022 launch, Matthiesen spoke about "a cross-platform toolkit that we used to use… that could lead to some experiences that didn't feel quite Mac-like, like tabs feeling off or just little controls that didn't feel quite right."

The framework in question, we think, is mono/xwt, which wraps either the Mac's Cocoa API or Gtk (GNOME Toolkit) via Gtk# (C# bindings) – a fact that hints at some of the history behind this IDE.

Its roots date back to almost the earliest days of .NET, when in 2000 developer Michael Kruger decided to create an IDE for .NET Framework 1.0 using .NET itself. He called his project SharpDevelop. It originally used Windows Forms, so was Windows only, but was adapted for Mono and Gtk#, to become the cross-platform MonoDevelop on Windows, Mac, and Linux.

MonoDevelop was taken up by Miguel de Icaza's Xamarin team, who also created a commercial version called Xamarin Studio. After the acquisition of Xamarin by Microsoft in early 2016, Xamarin Studio evolved into Visual Studio for the Mac, first released at the Build event in early 2017. Unlike Xamarin Studio, VS Mac is Mac-only and is now a closed-source IDE.

The Mono framework remains a core part of VS Mac

The Mono framework remains a core part of Visual Studio Mac

Name aside, the original VS Mac was quite unlike Visual Studio on Windows, though Microsoft has made some effort to unify the two. 2019 brought major architectural change, with Microsoft explaining at the time that "the code editor in Visual studio for Mac has been completely replaced with a new editor built on a shared core with Visual Studio on Windows, and with native macOS UI."

The new release is a continuation and perhaps completion of that work, though when we installed the new VS 2022 Preview 3 for the Mac we noted that one of the first things downloaded is the Mono Framework, still used by Xamarin and its new variant MAUI (multi-platform App UI). That said, MAUI support is not yet in this build, another clue showing how far this is from being production-ready. The release notes state: "This release is not 'go-live' and not intended for use on production computers or for creating production code."

Install options for Visual Studio 2022 for the Mac

Install options for Visual Studio 2022 for the Mac

What is VS Mac good for? Matthiesen said there are "three major types of projects you can work on," these being .NET Web applications, mobile applications using Xamarin, and game development scripts for Unity. The installer offers .NET, Android, iOS, and macOS as options.

The key question: why is Microsoft bothering with VS Mac when it has a more capable editor and IDE that, unlike VS Mac, is already widely used by developers? This is Visual Studio Code, by most estimates the most popular coding tool out there.

On Windows, the existence of Visual Studio alongside VS Code makes perfect sense. Visual Studio is the native IDE for the operating system and supports C++ as well as .NET languages; it occupies a similar position to that of Xcode on the Mac. Despite some efforts at convergence, VS Mac remains quite unlike Visual Studio on Windows, which has a narrower purpose. It is still needed for Xamarin development, but for web development with ASP.NET Core VS Code is arguably superior, thanks to its native JavaScript tools. It is notable that the documentation for ASP.NET Razor pages, for example, offers tutorials for Visual Studio Windows, VS Code, and for VS Mac, which states: "We hope to have Visual Studio for Mac instructions soon."

The problem may be related to some internal disquiet at Microsoft concerning the free VS Code competing with Visual Studio. A recent issue over the Hot Reload feature saw an attempt, soon reversed, to reserve it for Visual Studio.

If there were no VS Mac, Microsoft would have to invest more in the open-source tooling for .NET in VS Code, as well as adding MAUI support. That would be an excellent move for the .NET platform, but might not play well with the idea of keeping Visual Studio as the premium offering.

We hear rumours that the .NET team is actively discouraged from investing too much time in .NET tools for VS Code, and while that remains true, VS Mac will continue to be needed, despite being a niche tool compared to either of its relatives. ®

Other stories you might like

  • Lonestar plans to put datacenters in the Moon's lava tubes
    How? Founder tells The Register 'Robots… lots of robots'

    Imagine a future where racks of computer servers hum quietly in darkness below the surface of the Moon.

    Here is where some of the most important data is stored, to be left untouched for as long as can be. The idea sounds like something from science-fiction, but one startup that recently emerged from stealth is trying to turn it into a reality. Lonestar Data Holdings has a unique mission unlike any other cloud provider: to build datacenters on the Moon backing up the world's data.

    "It's inconceivable to me that we are keeping our most precious assets, our knowledge and our data, on Earth, where we're setting off bombs and burning things," Christopher Stott, founder and CEO of Lonestar, told The Register. "We need to put our assets in place off our planet, where we can keep it safe."

    Continue reading
  • Conti: Russian-backed rulers of Costa Rican hacktocracy?
    Also, Chinese IT admin jailed for deleting database, and the NSA promises no more backdoors

    In brief The notorious Russian-aligned Conti ransomware gang has upped the ante in its attack against Costa Rica, threatening to overthrow the government if it doesn't pay a $20 million ransom. 

    Costa Rican president Rodrigo Chaves said that the country is effectively at war with the gang, who in April infiltrated the government's computer systems, gaining a foothold in 27 agencies at various government levels. The US State Department has offered a $15 million reward leading to the capture of Conti's leaders, who it said have made more than $150 million from 1,000+ victims.

    Conti claimed this week that it has insiders in the Costa Rican government, the AP reported, warning that "We are determined to overthrow the government by means of a cyber attack, we have already shown you all the strength and power, you have introduced an emergency." 

    Continue reading
  • China-linked Twisted Panda caught spying on Russian defense R&D
    Because Beijing isn't above covert ops to accomplish its five-year goals

    Chinese cyberspies targeted two Russian defense institutes and possibly another research facility in Belarus, according to Check Point Research.

    The new campaign, dubbed Twisted Panda, is part of a larger, state-sponsored espionage operation that has been ongoing for several months, if not nearly a year, according to the security shop.

    In a technical analysis, the researchers detail the various malicious stages and payloads of the campaign that used sanctions-related phishing emails to attack Russian entities, which are part of the state-owned defense conglomerate Rostec Corporation.

    Continue reading
  • FTC signals crackdown on ed-tech harvesting kid's data
    Trade watchdog, and President, reminds that COPPA can ban ya

    The US Federal Trade Commission on Thursday said it intends to take action against educational technology companies that unlawfully collect data from children using online educational services.

    In a policy statement, the agency said, "Children should not have to needlessly hand over their data and forfeit their privacy in order to do their schoolwork or participate in remote learning, especially given the wide and increasing adoption of ed tech tools."

    The agency says it will scrutinize educational service providers to ensure that they are meeting their legal obligations under COPPA, the Children's Online Privacy Protection Act.

    Continue reading
  • Mysterious firm seeks to buy majority stake in Arm China
    Chinese joint venture's ousted CEO tries to hang on - who will get control?

    The saga surrounding Arm's joint venture in China just took another intriguing turn: a mysterious firm named Lotcap Group claims it has signed a letter of intent to buy a 51 percent stake in Arm China from existing investors in the country.

    In a Chinese-language press release posted Wednesday, Lotcap said it has formed a subsidiary, Lotcap Fund, to buy a majority stake in the joint venture. However, reporting by one newspaper suggested that the investment firm still needs the approval of one significant investor to gain 51 percent control of Arm China.

    The development comes a couple of weeks after Arm China said that its former CEO, Allen Wu, was refusing once again to step down from his position, despite the company's board voting in late April to replace Wu with two co-chief executives. SoftBank Group, which owns 49 percent of the Chinese venture, has been trying to unentangle Arm China from Wu as the Japanese tech investment giant plans for an initial public offering of the British parent company.

    Continue reading
  • SmartNICs power the cloud, are enterprise datacenters next?
    High pricing, lack of software make smartNICs a tough sell, despite offload potential

    SmartNICs have the potential to accelerate enterprise workloads, but don't expect to see them bring hyperscale-class efficiency to most datacenters anytime soon, ZK Research's Zeus Kerravala told The Register.

    SmartNICs are widely deployed in cloud and hyperscale datacenters as a means to offload input/output (I/O) intensive network, security, and storage operations from the CPU, freeing it up to run revenue generating tenant workloads. Some more advanced chips even offload the hypervisor to further separate the infrastructure management layer from the rest of the server.

    Despite relative success in the cloud and a flurry of innovation from the still-limited vendor SmartNIC ecosystem, including Mellanox (Nvidia), Intel, Marvell, and Xilinx (AMD), Kerravala argues that the use cases for enterprise datacenters are unlikely to resemble those of the major hyperscalers, at least in the near term.

    Continue reading

Biting the hand that feeds IT © 1998–2022