News

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

Featured

  • Compare New GitHub Copilot Free Plan for Visual Studio/VS Code to Paid Plans

    The free plan restricts the number of completions, chat requests and access to AI models, being suitable for occasional users and small projects.

  • Diving Deep into .NET MAUI

    Ever since someone figured out that fiddling bits results in source code, developers have sought one codebase for all types of apps on all platforms, with Microsoft's latest attempt to further that effort being .NET MAUI.

  • Copilot AI Boosts Abound in New VS Code v1.96

    Microsoft improved on its new "Copilot Edit" functionality in the latest release of Visual Studio Code, v1.96, its open-source based code editor that has become the most popular in the world according to many surveys.

  • AdaBoost Regression Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end demonstration of the AdaBoost.R2 algorithm for regression problems (where the goal is to predict a single numeric value). The implementation follows the original source research paper closely, so you can use it as a guide for customization for specific scenarios.

  • Versioning and Documenting ASP.NET Core Services

    Building an API with ASP.NET Core is only half the job. If your API is going to live more than one release cycle, you're going to need to version it. If you have other people building clients for it, you're going to need to document it.

Subscribe on YouTube