Does AppHarbor support ASP.NET Core v1.1 applications?
I have an ASP.NET Core v 1.1 application that I want to deploy but before I commit to this version rather than building it on the .NET platform I needed to know whether AppHarbor fully supported the Core apps yet?
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
1 Posted by jgarza on 10 Aug, 2017 03:43 PM
Hey Rune, I already have an ASP.NET Core v1.1 app, but I am getting the "Welcome to nginx!" page. What should I be looking at to solve it?
2 Posted by jgarza on 10 Aug, 2017 05:31 PM
I added the line
<PublishDir>$(OutDir)_PublishedWebsites\NetCoreWebApp\</PublishDir>
to the proj file.I added the configuration variable ASPNETCORE_ENVIRONMENT with value Production.
There is no deploy button on the Build status page. And there is no "CURRENT DEPLOYMENT" on the blue box on the left of the project page.
I downloaded the build, but I can't see any errors.
Still no cigar...
3 Posted by jgarza on 10 Aug, 2017 08:35 PM
AAAwww, come on!! I didn't read clearly the post https://support.appharbor.com/discussions/problems/90387-is-net-cor.... I didn't put DefaultTargets="Publish" at the top of the proj file.
Now that I did, it works!!!
Support Staff 4 Posted by rune on 11 Aug, 2017 05:28 AM
Hi,
Yes .NET Core is supported now, but it does require a little bit of initial configuration to make sure the proper web project is published -- in particular, adding the default target
Publish
and setting thePublishDir
property in your project file (as jgarza pointed out earlier). There's a bit more information in this comment, and this comment where I described how configuration variables are injectedWe're still working on a solution to automate the build integration, but it's just a minor change that's necessary for that and it'll work even after we automate it.
Let me know if there's anything else I can help with!
Best,
Rune
rune closed this discussion on 11 Aug, 2017 05:28 AM.