Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@monojenkins
Copy link
Contributor

What was happening was that this was building with a Mono.Cecil from
the build profile, but was trying to load the system Mono.Cecil.

Those versions mismatch when building 2018-08 with a nightly mono that is 5.23.0.

Rather than messing with the MONO_PATH and risking shadowing something
important there, I chose to copy the Mono.Cecil files into this
"lib/build/tmp" directory that we are using for the emitted executable.
It is loaded by the system Mono as the correct Mono.Cecil to use, as assemblies in the same folder have precedence.

This fixes the build.

Backport of #12573.

/cc @alexanderkyte

@monojenkins monojenkins added this to the 2018-08 (5.18.xx) milestone Jan 22, 2019
@alexanderkyte alexanderkyte force-pushed the backport-pr-12573-to-2018-08 branch from 46f2a27 to abfd8ba Compare January 23, 2019 20:11
What was happening was that this was building with a Mono.Cecil from
the build profile, but was trying to load the system Mono.Cecil.

Those versions mismatch when building 2018-08 with a nightly mono that is 5.23.0.

Rather than messing with the MONO_PATH and risking shadowing something
important there, I chose to copy the Mono.Cecil files into this
"lib/build/tmp" directory that we are using for the emitted executable.
It is loaded by the system Mono as the correct Mono.Cecil to use.

This fixes the build.
@akoeplinger
Copy link
Member

do we still need this?

@alexanderkyte
Copy link
Contributor

@monojenkins build failed

@alexanderkyte
Copy link
Contributor

alexanderkyte commented Feb 5, 2019

Yes @akoeplinger, this commit was necessary to land the MERP 2018-08 backport because it is necessary to create the monolite. If we want to ever be able to land another monolite-bumping backport to 2018-08 using newer monos installed on CI, we will need this change.

@akoeplinger
Copy link
Member

Ok. Given that 2018-08 should only receive critical fixes by now I hope we won't need another monolite bump. If that happens we can reopen the PR :)

@akoeplinger akoeplinger closed this Feb 5, 2019
@akoeplinger
Copy link
Member

Turns out this is not just important for monolite but whenever you build using a new enough system mono so we do need this, reopening and merging :)

@akoeplinger akoeplinger reopened this Feb 8, 2019
@akoeplinger akoeplinger merged commit 98810ac into mono:2018-08 Feb 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants