Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Where is AH with support for docker and asp.net core 2.0?

evilroxx's Avatar

evilroxx

08 Mar, 2018 05:13 AM

Been thinking of migrating my net642 to netcoreapp20 so I can work on my mac and use docker. Don’t see much discussions about issues regarding core and/or docker. Was wondering where AH is currently on its position to offer those services?

  1. Support Staff 1 Posted by rune on 12 Mar, 2018 02:28 AM

    rune's Avatar

    Hi,

    AppHarbor doesn't support Docker, but I'd be curious to hear why you need that? We may add support for it in the future, but not necessarily something that'll exposed to apps (although we may if there are reasons to warrant that).

    ASP.NET Core is supported, but still requires publishing to the output directory using a bit of configuration in your web project file. All current versions of the .NET Core runtime including version 2.0 are installed on the worker and build servers, which also include the SDK.

    Currently you'll need to trigger the Publish build target and set the PublishDir project property yourself. That's pretty straightforward as you can see in this sample csproj using a default ASP.NET Core 1.1 (Core FX) template app created created with VS017:

    <Project Sdk="Microsoft.NET.Sdk.Web" DefaultTargets="Publish">
        <PropertyGroup>
            <TargetFramework>netcoreapp1.1</TargetFramework>
            <PublishDir>$(OutDir)_PublishedWebsites\NetCoreApp\</PublishDir>
        </PropertyGroup>
        <PropertyGroup>
            <PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
        </PropertyGroup>
        <ItemGroup>
            <PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.0.0" />
            <PackageReference Include="Microsoft.AspNetCore" Version="1.1.2" />
            <PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.3" />
            <PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.2" />
            <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.2" />
            <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.2" />
        </ItemGroup>
        <ItemGroup>
            <DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.1" />
        </ItemGroup>
    </Project>
    

    It should work if you make those two changes to the web project file, commit it to your repository and push to AppHarbor, but let me know if you continue to experience issues with this!

    Cheers,
    Rune

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac