- 最新
- 最多得票
- 最多評論
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.
相關內容
- AWS 官方已更新 3 年前
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前