aws / aws-codebuild-docker-images

Official AWS CodeBuild repository for managed Docker images http://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref.html
Other
1.11k stars 971 forks source link

Question about dotnet globaljson version #728

Open Beau-Gosse-dev opened 2 months ago

Beau-Gosse-dev commented 2 months ago

Describe the bug I'm posting here more to ask a question rather than report a bug. We saw .NET code that expected the wrong patch version, when we don't expect the code to care what patch number it was.

This is the below error that triggered this investigation:

Framework: 'Microsoft.NETCore.App', version '6.0.27' (x64)
.NET location: /var/lang/bin/
The following frameworks were found:
6.0.26 at [/var/lang/bin/shared/Microsoft.NETCore.App]

What $VERSION would be used in this line of code? Or how is the runtime.yml code called? Would the value of $VERSION be different from $DOTNET_6_GLOBAL_JSON_SDK_VERSION as is used in this line of code?

I ask because if $VERSION had a patch version specified (e.g. 6.0.27 instead of just 6.0.0) that might result in the issue we hit.