setup-dotnet: Cannot Find hostfxr.dll
Not completely sure if related to this action, but my best guess the issue is related to https://github.com/actions/setup-dotnet/pull/12#issuecomment-519660629.
Using: actions/setup-dotnet@v1.1.0
Run wyam
wyam
shell: C:\Program Files\PowerShell\6\pwsh.EXE -command ". '{0}'"
env:
DOTNET_ROOT: C:\hostedtoolcache\windows\dncs
A fatal error occurred, the required library hostfxr.dll could not be found.
If this is a self-contained application, that library should exist in [C:\Users\runneradmin\.dotnet\tools\.store\wyam.tool\2.2.4\wyam.tool\2.2.4\tools\netcoreapp2.1\any\].
If this is a framework-dependent application, install the runtime in the default location [C:\Program Files\dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 4
- Comments: 21 (8 by maintainers)
Commits related to this issue
- Adjust DOTNET_ROOT This should fix https://github.com/actions/setup-dotnet/issues/29 — committed to rmunn/Testing by rmunn 5 years ago
- Merge pull request #7 from rmunn/github-actions Add GitHub Actions workflow https://github.com/actions/setup-dotnet/issues/29#issuecomment-527741144 — committed to rmunn/Testing by rmunn 5 years ago
- Include version/architecture in DOTNET_ROOT Fixes #29 — committed to rojepp/setup-dotnet by rojepp 5 years ago
- Override DOTNET_ROOT Work around https://github.com/actions/setup-dotnet/issues/29. — committed to gitfool/Cake.Dungeon by gitfool 5 years ago
- Downgrade to setup-dotnet@v1.0.2 This fixes actions/setup-dotnet#29 which was introduced by actions/setup-dotnet#12. — committed to JSkimming/abioc by JSkimming 5 years ago
- work around actions/setup-dotnet#29 — committed to benjamin-hodgson/Pidgin by deleted user 5 years ago
- https://github.com/actions/setup-dotnet/issues/29 :sadpanda: — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
- https://github.com/actions/setup-dotnet/issues/29 :sadpanda: — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
- downgrade dotnet action to fix hostfxr.dll bug See https://github.com/actions/setup-dotnet/issues/29. — committed to ixmilia/pdf by brettfo 5 years ago
- downgrade dotnet action to fix hostfxr.dll bug See https://github.com/actions/setup-dotnet/issues/29. — committed to ixmilia/dxf by brettfo 5 years ago
- downgrade dotnet action to fix hostfxr.dll bug See https://github.com/actions/setup-dotnet/issues/29. Also update submodules. — committed to ixmilia/converters by brettfo 5 years ago
- Merge pull request #34 from rojepp/fix_dotnet_root Include version/architecture in DOTNET_ROOT Fixes #40 and #29. — committed to actions/setup-dotnet by deleted user 5 years ago
- Rest API Spec tests runner (#4123) * stage, now actually sends querystring parameters * DynamicResponse now useful in the context of yaml runner * support _arbitrary_key_ * more assertions ... — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
- Rest API Spec tests runner (#4123) * stage, now actually sends querystring parameters * DynamicResponse now useful in the context of yaml runner * support _arbitrary_key_ * more assertions * more... — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
- Backport/7.x/yaml test runner (#4179) * Rest API Spec tests runner (#4123) * stage, now actually sends querystring parameters * DynamicResponse now useful in the context of yaml runner * sup... — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
- Backport/7.x/yaml test runner (#4179) * Rest API Spec tests runner (#4123) * stage, now actually sends querystring parameters * DynamicResponse now useful in the context of yaml runner * support _... — committed to elastic/elasticsearch-net by Mpdreamz 5 years ago
Thanks for the confirmation @biom3tric - I feel like the default should have worked as this change was made - https://github.com/actions/setup-dotnet/pull/12/commits/ff36c3f74808c58fe86e008c9df007eb630ffbf6 (updated
DOTNET_ROOT
to be/opt/hostedtoolcache/dncs/
instead of/opt/hostedtoolcache/dncs/version/arch/
).@damccorm it seems we need to be pointing to the versioned folder - the cli for 2.1 and 2.2 sdk’s don’t know how to resolve the correct version.
Using v1.1.0, i had to do this to make global tools work
The default DOTNET_ROOT variable stops to
/opt/hostedtoolcache/dncs/
, instead of going into the version and x64 folder@roji are you pinning to a specific commit? If so, you just need to update to a version which contains the fix. E.g.
@JSkimming I believe that
DOTNET_ROOT
variable is required for global tools to launch, I’m just wondering if it’s set to the wrong path.