Skip to content

Instantly share code, notes, and snippets.



Last active Aug 17, 2017
What would you like to do?
An Amazon Elastic Beanstalk .ebextensions config to get .NET Core 2.0 working on existing AMIs (
content: |
if (!(Test-Path -path 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\2.0.0\')) {
$url = ""
$path = "C:\Users\Administrator\Downloads\DotNetCore.2.0.0-WindowsHosting.exe"
(New-Object System.Net.WebClient).DownloadFile($url, $path)
&$path /quiet
Start-Sleep -s 5
Remove-Item $path
command: powershell.exe -ExecutionPolicy ByPass -File C:\Users\Administrator\Documents\installnetcore2.ps1
<None Include=".ebextensions\netcore2.config" CopyToPublishDirectory="preserveNewest" />

This comment has been minimized.

Copy link
Owner Author

@onyxmaster onyxmaster commented Aug 17, 2017

When using AWS Toolikt for Visual Studio 2017 you can publish your ASP.NET Core apps to AWS using Elastic Beanstalk.
Unfortunately, at this time the AMIs do not support .NET Core 2.0.
Fortunately, you do not have to wait, just add netcore2.config to .ebextensions/netcore2.config in your project, and modify the .csproj as shown above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment