Fix netstandard runtime error by installing mono-devel #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
Cause
Mysteries of .NET and Mono. The core error message
Could not load file or assembly 'netstandard, Version=2.0.0.0
is essentially completely meaningless in terms of pointing toward a specific problem, so we have to fall back to trial and error.Installing
mono-complete
fixed it, so I dug into its dependencies, and found that if I installed all of them except formono-devel
andmono-roslyn
, the problem still happened, but if I installed those two packages, it was fixed. This should not happen; dev/compiler tools should not be needed to run an app that's already compiled, but that's where the evidence is leading us.Changes
Now the Dockerfile installs
mono-devel
andmono-roslyn
, which unfortunately pulls in most of the Mono cruft we were trying to trim in #18. But there appears to be no other way to get Mono to work here.Fixes #19.