- Newest
- Most votes
- Most comments
After doing some digging and talking to couple of folks, I realized that CodeBuild doesn't support .Net Core 6 yet. But there is a work around by explicitly installing the latest SDKs on the container as part of your infrastructure setup.
I added the following command to my synth workflow which installed the latest SDKs on the docker.
"/usr/local/bin/dotnet-install.sh --channel LTS"
There are different ways to use it depending on your use case. I've added in my C# code as a Install Command when building the pipeline
private static readonly string[] InstallCommands =
{
"/usr/local/bin/dotnet-install.sh --channel LTS"
};
var synth = new ShellStep("Synth",
new ShellStepProps
{
InstallCommands = InstallCommands,
});
var pipeline = new CodePipeline(this, "Pipeline", new CodePipelineProps { Synth = synth });
I believe it can also be added to buildspec.yml
file. There's an example in following link.
Reference: https://github.com/aws/aws-codebuild-docker-images/issues/497
When to expect official .Net Core 6 support on Code Build
I believe the support for .Net Core 6 with CodeBuild will be available in the near future. Found some additional resource for Core 6 support on different AWS Services.
Relevant content
- asked 4 months ago
- asked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago