Bug 58815 - Can't build VSfM with mono 5.6.0 and .net core 2.0
Summary: Can't build VSfM with mono 5.6.0 and .net core 2.0
Status: RESOLVED FIXED
Alias: None
Product: Tools
Classification: Mono
Component: msbuild ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: ---
Assignee: Matt Ward
URL:
Depends on:
Blocks:
 
Reported: 2017-08-16 14:17 UTC by Egorbo
Modified: 2017-09-25 14:12 UTC (History)
5 users (show)

Tags: 2017-08
Is this bug a regression?: ---
Last known good build:


Attachments
build.log.zip (3.61 MB, application/zip)
2017-09-13 16:22 UTC, Ludovic Henry
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Egorbo 2017-08-16 14:17:16 UTC
I am trying to build VSfM from https://github.com/mono/monodevelop/tree/mono-2017-08 branch.
I have 5.6.0 mono and it builds fine.
but If I install .NET Core 2.0 SDK from the official MS site - "make" fails.
the log can be found here: https://wrench.internalx.com/Wrench/ViewLane.aspx?lane_id=5277&host_id=430&revision_id=907978
Comment 1 Ludovic Henry 2017-09-13 16:22:57 UTC
Created attachment 24734 [details]
build.log.zip

I can reproduce locally when building for release mode, but it doesn't seem to reproduce in debug mode. I have attached the logs of building in both release and debug mode.

To build in release mode, I used the following command:
> msbuild /verbosity:detailed /nologo /property:CodePage=65001 main/Main.sln /property:Configuration=ReleaseMac

To build in debug mode, I used the following command:
> msbuild /verbosity:detailed /nologo /property:CodePage=65001 main/Main.sln /property:Configuration=DebugMac
Comment 2 Ankit Jain 2017-09-13 16:38:57 UTC
Ludovic, which version of mono?
Comment 3 Ludovic Henry 2017-09-13 16:56:46 UTC
Mono 5.6.0.67 (2017-08/ad9daeaf581)
Comment 4 Ankit Jain 2017-09-23 13:16:18 UTC
After lot of digging found that:

`NuGet.ProjectModel` assembly is getting loaded from *embedded resources* by `Costura` (via a custom assembly resolver!) from `NuGet.Build.Packaging*.dll` v0.1.276 . And that causes mismatches with the other NuGet* assemblies being loaded from netcore sdk!

This was reverted in the upstream package: https://github.com/NuGet/NuGet.Build.Packaging/commit/7838a0a95fb8ce5c9db7b7d4d2bfe62f38b4eddb

This is included in versions >= v0.1.313 .
I tried using the latest package v0.2.0 and XS builds fine with that.

The update to the problematic package, v0.1.276, was done in https://github.com/mono/monodevelop/commit/89679d43882c86e572941f4f066ab0a4d37959e8 by Matt. Assigning this to him, so that he can decide which version to update to.
Comment 6 Matt Ward 2017-09-23 13:48:23 UTC
Updating to the latest stable NuGet.Build.Packaging is fine by me. We will probably want the VS Mac change to be tested by QA.
Comment 7 Ankit Jain 2017-09-23 17:19:30 UTC
https://github.com/mono/mono-addins/pull/88
Comment 8 Matt Ward 2017-09-25 08:26:46 UTC
Fix for MonoDevelop master was merged:

https://github.com/mono/monodevelop/pull/3081
Comment 10 Ludovic Henry 2017-09-25 14:12:27 UTC
It successfully build.