-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker godot mono 4.1.3 image not working - .NET not initalized #124
Comments
Same error using |
Hey, so I found out this action which set up dotnet for the workflow - name: .NET installation
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x" I got it to work but there's more problem keep popping up after this (probably due to me also not knowing how to set all of this up properly lol). But we'll figure out as we go, I hope this helpful for you guys |
@mustachebutter I can confirm that using that GitHub action helps a lot and enables the build to succeed 🙌 Now if I can just figure out why the published version has random scripts/connections missing... |
Exactly same bug happening on Gitlab Runner on |
+1 having this problem too. |
I guess this just needs to be documented - Also, I would like to choose my dotnet version myself, so it is great that it is not included in the docker image.
|
I got a fully working example here if anyone needs. Just modify a couple of things for this to work accordingly for your project. I have this pipeline triggered by creating a release tag in GitHub. Build and then push to Itch.IO with butler. That's the usefulness of the docker image, everything is there for us to use, but I feel like the documentation is a bit convoluted for someone who is not used to it. https://gist.github.com/mustachebutter/eb9e6fd729ea4f1e0006847f7b5fdf22 |
I was trying to run a Gitlab pipeline using this docker image:
barichello/godot-ci:mono-4.1.3
But as soon as the pipeline starts, this is the error I'm getting:
.NET: Initializing module...
ERROR: The host fxr folder does not exist: /usr/share/dotnet/host/fxr.
at: try_get_path_from_dotnet_root (modules/mono/editor/hostfxr_resolver.cpp:325)
ERROR: .NET: One of the dependent libraries is missing. Typically when the
hostfxr
,hostpolicy
orcoreclr
dynamic libraries are not present in the expected locations.at: find_hostfxr (modules/mono/mono_gd/gd_mono.cpp:125)
ERROR: .NET: Failed to load hostfxr
at: initialize (modules/mono/mono_gd/gd_mono.cpp:394)
Unable to load .NET runtime, specifically hostfxr.
Attempting to create/edit a project will lead to a crash.
Please install the .NET SDK 6.0 or later from https://dotnet.microsoft.com/en-us/download and restart Godot.
I'm not too good with this, so I'm can't find the answer. Maybe someone can find a solution.
The text was updated successfully, but these errors were encountered: