aws-samples / aws-samples/amazon-cognito-unity-integration

A fatal error occurred. The required library libhostfxr.dylib could not be found.

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
7
Forks
2
PR merge metrics
No merged PRs in 30d

Description

When running `cdk deploy` on my M1 Macbook, I encountered this error.
` fatal error occurred. The required library libhostfxr.dylib could not be found.
If this is a self-contained application, that library should exist in [/Users/ac/projects/unity/amazon-cognito-unity-integration/backend/src/CdkDotnet/bin/Debug/netcoreapp3.1/].`

[Most likely, it is due to this issue](https://github.com/aws/aws-dotnet-deploy/issues/719#issuecomment-1444111864).

I managed to fix it by changing this line in `backend/src/CdkDotnet/CdkDotnet.csproj`:
` netcoreapp3.1 ` to ` net8.0 `
and of course installing the requisite version of .Net

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.