Archived Support Site

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

Error Deploying ASP.NET CORE 1.0 : Error: Workaround

pcabralc's Avatar

pcabralc

07 Jan, 2017 10:45 PM

Hello

just started using AppHarbor and a simple deploy of a Sample ASP.NET Core Web Application fails. When you push your code to AppHarbor Git and AppHarbor CI starts the Build the Build fails:

MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'. Use option -MSBuildVersion to force nuget to use a specific version of MSBuild.
MSBuild P2P timeout [ms]: 120000
D:\temp\yg305ede.wk5\input\src\TKSolutions\TKSolutions.xproj(7,3): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

System.AggregateException: One or more errors occurred. ---> NuGet.CommandLineException
   at NuGet.CommandLine.MsBuildUtility.GetProjectReferences(String msbuildDirectory, String[] projectPaths, Int32 timeOut)
   at NuGet.CommandLine.RestoreCommand.DetermineRestoreInputs()
   at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__23.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at NuGet.CommandLine.Command.Execute()
   at NuGet.CommandLine.Program.MainCore(String workingDirectory, String[] args)
---> (Inner Exception #0) NuGet.CommandLineException
   at NuGet.CommandLine.MsBuildUtility.GetProjectReferences(String msbuildDirectory, String[] projectPaths, Int32 timeOut)
   at NuGet.CommandLine.RestoreCommand.DetermineRestoreInputs()
   at NuGet.CommandLine.RestoreCommand.<ExecuteCommandAsync>d__23.MoveNext()<---

After some googling I found a youtube video (https://www.youtube.com/watch?v=dPM13yQCBpI) with a workaround that works just fine (install AppHarbor Command Line Utility).

Still this is not very friendly to do...

Is ASP.NET Core build and deploy full support scheduled on AppHarbor so that we can Deploy our Applications just by pushing the code to AppHarbor Git?

Thanks in advance,

Pedro Cabral

  1. Support Staff 1 Posted by rune on 09 Jan, 2017 01:41 PM

    rune's Avatar

    Hi Pedro,

    We'd love to fully support .NET Core, and will do so as soon as the tooling reaches production level quality. That is unfortunately still not the case for .NET Core projects, where RTM quality tooling is scheduled for release later this year -- as soon as that work is complete we'll support it, but for now you'll have to work around these limitations if you wish to deploy .NET Core apps to AppHarbor before they're officially supported.

    Best,
    Rune

  2. rune closed this discussion on 09 Jan, 2017 01:41 PM.

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