Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Aug 2023 15:50:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        mono@FreeBSD.org
Subject:   [Bug 256342] devel/msbuild: default targets are unusable with lang/mono5.20 and lang/mono6.8
Message-ID:  <bug-256342-23699-vgp2Nk9HGa@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256342-23699@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256342-23699@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256342

--- Comment #3 from Jan Beich <jbeich@FreeBSD.org> ---
(In reply to Marcin Cie=C5=9Blak from comment #2)
> # ln -s ../../Current/bin/Roslyn /usr/local/lib/mono/msbuild/15.0/bin/Ros=
lyn

I confirm, this fixes lang/mono5.20 while lang/mono6.8 needs more.

$ msbuild hello.csproj
Microsoft (R) Build Engine version 42.42.42.42 ( Tue Aug  1 17:21:05 UTC 20=
23)
for Mono
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 8/7/2023 1:23:36 PM.
Project "/tmp/hello.csproj" on node 1 (default targets).
/usr/local/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.Managed.Core.targets(=
60,27):
error MSB4184: The expression ""hello.cs".GetPathsOfAllDirectoriesAbove()"
cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' n=
ot
found. [/tmp/hello.csproj]
Done Building Project "/tmp/hello.csproj" (default targets) -- FAILED.

Build FAILED.

"/tmp/hello.csproj" (default target) (1) ->
=20
/usr/local/lib/mono/msbuild/15.0/bin/Roslyn/Microsoft.Managed.Core.targets(=
60,27):
error MSB4184: The expression ""hello.cs".GetPathsOfAllDirectoriesAbove()"
cannot be evaluated. Method 'System.String.GetPathsOfAllDirectoriesAbove' n=
ot
found. [/tmp/hello.csproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.25

> Maybe we should go for a bold move an replace devel/msbuild with 16.9.0 (=
or later) and lang/mono with 6.12+

For games/openra 20200503 -> 20210321 (the latest is 20230225 but requires
dotnet instead of mono) I need at least lang/mono5.20 due to
https://github.com/openra/openra/commit/19b02875c7da
OpenBSD Ports has openra-20210321 with mono-6.12, so skipping 5.20 (and 6.8)
should be fine.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256342-23699-vgp2Nk9HGa>