9

When trying to build an ASP.NET 5 DNX project on VSO, I get the following error:

Cannot find DNX runtime dnx-clr-win-x86.1.0.0-beta6 in the folder: C:\Users\buildguest.dnx\runtimes (119,5): Error : The Dnx Runtime package needs to be installed. See output window for more details.

Does this mean that we cannot use the host build controller with DNX projects yet?

Daniel Mann
  • 57,011
  • 13
  • 100
  • 120
Dave New
  • 38,496
  • 59
  • 215
  • 394
  • 1
    You can install DNX using NuGet with a custom build script. – Henk Mollema Aug 02 '15 at 10:05
  • @HenkMollema: I have done this by adding a powershell script build step. Now it seems that package restore doesn't work with DNX projects. Would it be best to manually restore from DNU using powershell? – Dave New Aug 02 '15 at 10:30
  • Yes, you could take a look at the build scripts Microsoft is using themselves. – Henk Mollema Aug 02 '15 at 10:44
  • @HenkMollema: Where would I find something like this? When running "dnu restore" on the VSO build controller, I just get _"The term 'dnu' is not recognized as the name of a cmdlet, function, script file, or operable program."_ – Dave New Aug 02 '15 at 10:47
  • 1
    See the `build.cmd` script on any aspnet repository. – Henk Mollema Aug 02 '15 at 12:21

2 Answers2

10

Found a great guide on how to install dnx on vso host. https://msdn.microsoft.com/Library/vs/alm/Build/azure/deploy-aspnet5

Added the first PreBuild.ps1 script as a Powershell build step and it worked right away.

honk
  • 581
  • 4
  • 19
  • 1
    I downvoted this because link-only answers are not good answers -- links tend to die, then this answer becomes useless. If you summarize the exact steps that are provided in the link I'll remove the downvote. – Daniel Mann Aug 17 '15 at 16:44
  • Now that DNX is obsolete, the link is dead. No luck with Web Archive either @DanielMann – bzlm Jun 29 '16 at 14:09
0

Since I still use it, to compile my code, to me, it's not dead.

I integrated some travis-ci config in py project, have a look at my .travis.yml for an update, but I count on my host name, my pc, and my internet connection to serve it as I do since few years:

dnx-install.sh

Note that DNX should be able to build DNX, from it's source code, even marked as obsolete, and that It would be possible, but painfull, to write some scripts and use mono-roslyn directly ... still not a dead branch to me.