Oleg G
Oleg G

Reputation: 151

Can I use docker to run MSBuild on OSX?

At work we have a large JS(FrontEnd)/.NET(BackEnd) project. I want to have an option to work on the project on a Mac at home. Can I use docker for working both on PC and on Mac for the same project? I have been told, that the current system doesn't work well with the classic .NET, only optimized for .NET core. Is that correct?

Upvotes: 0

Views: 1465

Answers (2)

Martin Ullrich
Martin Ullrich

Reputation: 100641

Mono 4.8+ includes a distribution of msbuild that can build csproj projects. Mono 5 is going to include the SDKs required to build the "new-style" csproj format for .net core / .net standard (4.8 can be patched manually).

The omnisharp project also brings C# editing capabilities to a lot of editors and works on macOS. So does the C# extension for Visual Studio Code (which is found on GitHub and powers by omnisharp-roslyn). Microsoft also offers Visual Studio for Mac so you can have a similar editing experience for your projects across macOS and Windows. There also is the JetBrains Rider projects which aims to create a non-microsoft cross-platform IDE.

Upvotes: 0

Mano Marks
Mano Marks

Reputation: 8819

You could build it if you're willing to use only .NET Core, per these directions. However you are correct that you need Windows to get the full .NET Framework. And at this point you can only use Windows Docker containers on Windows 10 pro or Windows Server 2016, not Mac or Linux.

Upvotes: 1

Related Questions