How to install MSBuild on OS X and Linux?

I want to install MSBuild on my Linux laptop so that I can build my C # OSS project. How exactly will I do this? I came across several guides, such as those that suggest installing the MSBuildNuGet package , but it does not seem official or is actively supported.

Is there an official package source from which I can install MSBuild?

+4
source share
1 answer

Yes, such a package was posted by the CoreFX team as a MyGet feed. To install, run this on the terminal:

#!/bin/sh

packageid="Microsoft.Build.Mono.Debug"
version="14.1.0.0-prerelease" # update as needed

mono path/to/nuget.exe install $packageid -Version \
    $version -Source "https://www.myget.org/F/dotnet-buildtools/"

# run MSBuild
mono $packageid.$version/lib/MSBuild.exe Foo.sln

.NET Core, .


EDIT: , , Mono 4.0.1 .

+4

Source: https://habr.com/ru/post/1607130/


All Articles