- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
Contenus pertinents
- demandé il y a un an
- demandé il y a 2 mois
- demandé il y a 6 mois
- Réponse acceptéedemandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans