-
Couldn't load subscription status.
- Fork 989
Closed
Description
Hi. We're experimenting with .NET 5 and use GitVersion.Tool as part of of our pipeline which is a global .NET Core executable.
Since the Standard 5.0 doesn't have a DOTNET_ROOT env var(seems like it's set as an ARG in https://github.com/aws/aws-codebuild-docker-images/blob/master/ubuntu/standard/5.0/Dockerfile#L162) the way Standard 4.0 does(
| ENV DOTNET_ROOT="/root/.dotnet" |
A fatal error occurred. The required library libhostfxr.so could not be found. If this is a self-contained application, that library should exist in [/codebuild/output/src768222049/src/github.com/[...]/.store/gitversion.tool/5.6.4/gitversion.tool/5.6.4/tools/net5.0/any/]. If this is a framework-dependent application, install the runtime in the global location [/usr/share/dotnet] or use the DOTNET_ROOT environment variable to specify the runtime location or register the runtime location in [/etc/dotnet/install_location].
An workaround is to add it by hand in the buildscript.yml file, in which case everything works:
env: variables: DOTNET_ROOT: /root/.dotnet
but this is obviously not ideal.
Is it possible for Standard 5.0 to work like the older images in this regard?
stage88, derwasp, adamelkhayyat, gbasov-albelli, MarkdeJong and 16 more
Metadata
Metadata
Assignees
Labels
No labels