.NET Framework applications can only be built on the Windows OS, not on Linux. If AWS CodeBuild does not support Windows build environments in your region, then there are two alternatives:
- Configure AWS CodePipeline to execute the build on an EC2 host running whatever build software you prefer. Most people use Jenkins for this, and there is a AWS CodePipeline Plugin for Jenkins that you install on the Jenkins build server that allows integrating CodePipeline and Jenkins. This is the approach I recommend. You can read the tutorial, "Create a four-stage pipeline" to see how to set this up.
- Alternatively, you could set up your CodePipeline using CodeBuild in another region that supports Windows build environments. Then, configure CodeBuild to push the artifacts (the compiled .NET Framework project, including assemblies, etc.) to an S3 bucket. Then, configure another CodePipeline in your region (Singapore), which has an action that pulls the artifacts from S3 and deploys to your EC2 instances (or wherever you are deploying to).
I recommend the first approach because there is only one pipeline, in a single region, but either approach can work.
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 9 months ago