You are not logged in.

#1 2017-05-15 12:26:38

catalin.hritcu
Member
From: Paris, France
Registered: 2014-04-27
Posts: 26
Website

mono 5.0 deprecated xbuild 4 msbuild;arch doesn't include it [SOLVED]

Just upgraded mono (4.8.0.495-1 -> 5.0.0.100-1) and now calling xbuild yields the following warning

>>>> xbuild tool is deprecated and will be removed in future updates, use msbuild instead <<<<

The mono package doesn't seem to include the msbuild binary though.

The release notes for mono 5.0.0 (http://www.mono-project.com/docs/about- … 0/#msbuild) mentions this:

We encourage everyone to switch to the msbuild command which is now available on Mono as well.

Can't switch to msbuild though if the msbuild command is not actually available on arch.

Last edited by catalin.hritcu (2017-06-11 07:12:49)

Offline

#2 2017-05-15 13:59:46

srki_82
Member
Registered: 2012-04-21
Posts: 9

Re: mono 5.0 deprecated xbuild 4 msbuild;arch doesn't include it [SOLVED]

MSBuild is separate component and it is not included in Mono source. You can find more info here: [Mono-list] MSBUILD not available in mono 5.0.0.94
I don't think we will soon see MSBuild in repos since it requires .NET Core 1.x to build.

Edit: Added MSBuild PKGBUILD
You can use this PKGBUILD until MSBuild is added to repos.

pkgname=msbuild-xamarin
_pkgver=15.2+xamarinxplat.2017.05.04.00.44-0xamarin3+ubuntu1404b1
pkgver=${_pkgver//[+-]/_}
pkgrel=1
pkgdesc="Xamarin implementation of the Microsoft build system"
arch=('x86_64')
depends=('mono>=4.0.0')
provides=('msbuild')
conflicts=('msbuild')
url="https://github.com/mono/msbuild"
license=('MIT')
source=("msbuild-amd64-v${_pkgver}.deb::http://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild_${_pkgver}_all.deb")
sha256sums=(35dd663e764abd335f8bc95b31dbae74dd1f25a1953582769a122e97978ed915)

package() {
    cd "${srcdir}"

    bsdtar xf data.tar.xz
    chmod -R g-w usr
    mv usr "${pkgdir}"
}

Last edited by srki_82 (2017-05-16 08:46:20)

Offline

#3 2017-05-16 13:19:03

catalin.hritcu
Member
From: Paris, France
Registered: 2014-04-27
Posts: 26
Website

Re: mono 5.0 deprecated xbuild 4 msbuild;arch doesn't include it [SOLVED]

@srki_82: Many thanks for the solution, it works like a charm. It's just a version update compared to the following package, right?
https://aur.archlinux.org/packages/msbuild-15-bin/

Offline

#4 2017-05-16 16:24:34

srki_82
Member
Registered: 2012-04-21
Posts: 9

Re: mono 5.0 deprecated xbuild 4 msbuild;arch doesn't include it [SOLVED]

Yes it is. I have already notified owner to update package, so you will soon be able to install it from AUR.

Offline

Board footer

Powered by FluxBB