MSBuild Makes Cross-Platform Progress

Since March, Microsoft has had designs on taking the Microsoft Build Engine open source and cross-platform as it ports it to .NET Core in the coming months. Progress is in full swing now.

It's been a few months since Microsoft announced that it was open sourcing the Microsoft Build Engine and providing ways to use it on Mac and Linux platforms, and now the project is in full swing, but they've since switched gears to simplify cross-platform portability.

"Moving forward we've decided to switch gears and bet on .NET Core as our runtime," said Microsoft Program Manager Rich Lander, who posted this blog about the initial push. "At the end, we want to have a single open source code base that works cross-platform, and from which we also build the MSBuild package that ships with Visual Studio."

.NET Core is a forked version of the .NET Framework, or as Microsoft Program Manager Immo Landwerth, who heads the .NET Framework team, wrote in a thorough description of its development, it's "a modular implementation that can be used in a wide variety of verticals, scaling from the data center to touch based devices, is available as open source, and is supported by Microsoft on Windows, Linux and Mac OSX." It's easy to see why rather than continue to work on versions for Mac and Linux using the Mono platform, the team would immediately pour its efforts into .NET Core.

Comments to the post bring up some concerns about Msbuild in general and the branching strategy that appears to have the branches diverging even further. "The xplat and master are diverging with every PR merged, which is a bad strategy," said James, a commenter, who links to a number of similar comments in a branching strategy discussion on GitHub.

"Our ultimate longer-term goal will be to have a single branch that contains Linux and Windows, but right now the quality bar for master is much higher because of potential regressions," explained Andy Gerlicher, a Microsoft senior software engineer. "We have a very large customer base and tight integration with Visual Studio so this is the main priority when considering changes. We would definitely approve targeted and well tested merges between branches though."

"At the end, we want to have a single open source code base that works cross-platform, and from which we also build the MSBuild package that ships with Visual Studio," said Nikolai Tillmann, a principal software engineer manager with Microsoft Research, who recently joined Microsoft's Tools for Software Engineers Group.

About the Author

You Tell 'Em, Readers: If you've read this far, know that Michael Domingo, Visual Studio Magazine Editor in Chief, is here to serve you, dear readers, and wants to get you the information you so richly deserve. What news, content, topics, issues do you want to see covered in Visual Studio Magazine? He's listening at [email protected].

comments powered by Disqus


  • AI for GitHub Collaboration? Maybe Not So Much

    No doubt GitHub Copilot has been a boon for developers, but AI might not be the best tool for collaboration, according to developers weighing in on a recent social media post from the GitHub team.

  • Visual Studio 2022 Getting VS Code 'Command Palette' Equivalent

    As any Visual Studio Code user knows, the editor's command palette is a powerful tool for getting things done quickly, without having to navigate through menus and dialogs. Now, we learn how an equivalent is coming for Microsoft's flagship Visual Studio IDE, invoked by the same familiar Ctrl+Shift+P keyboard shortcut.

  • .NET 9 Preview 3: 'I've Been Waiting 9 Years for This API!'

    Microsoft's third preview of .NET 9 sees a lot of minor tweaks and fixes with no earth-shaking new functionality, but little things can be important to individual developers.

  • Data Anomaly Detection Using a Neural Autoencoder with C#

    Dr. James McCaffrey of Microsoft Research tackles the process of examining a set of source data to find data items that are different in some way from the majority of the source items.

  • What's New for Python, Java in Visual Studio Code

    Microsoft announced March 2024 updates to its Python and Java extensions for Visual Studio Code, the open source-based, cross-platform code editor that has repeatedly been named the No. 1 tool in major development surveys.

Subscribe on YouTube