`The Dnx Runtime package needs to be installed` error

Mohammad Rahhal's Avatar

Mohammad Rahhal

20 Oct, 2015 08:03 AM

I can build my repo locally without issues but here it is (only the dnx projects) always failing with the following error:
The Dnx Runtime package needs to be installed.

Here it is:
https://ci.appveyor.com/project/mrahhal/externaltemplates/build/14

I'm installing dnx using dnvm install 1.0.0-beta8 before building and tried a lot of variants but the same error always happen. I also specified Viusal Studio 2015 as the OS. Am I missing something?

I've seen this issue: http://help.appveyor.com/discussions/problems/2114-build-failed-bec...
But that didn't help.

Here is my appveyor.yml:

version: '{build}'
os: Visual Studio 2015
install:
- cmd: >-
    set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
    dnvm install 1.0.0-beta8
build_script:
- ps: .\package.ps1
test: off
artifacts:
- path: artifacts/packages/*.nupkg
  1. 1 Posted by Mohammad Rahhal on 20 Oct, 2015 08:56 AM

    Mohammad Rahhal's Avatar

    Ok I think I found out why. Locally I've been using sdk version rc1 while in my install script on appveyor I was installing beta8 version so the runtime was looking for dnx.1.0.0-rc1.

    I think I also have to edit global.json to the following:

    {
        "projects": [ "src", "test" ]
    }
    
    Added "test" so that the test project would also build.

    Will post back the results.

  2. 2 Posted by Mohammad Rahhal on 20 Oct, 2015 09:43 AM

    Mohammad Rahhal's Avatar

    The main dnx project is building correctly now, but the test project is still failing.

    The build is still looking for beta7 and I have no idea why:

    Cannot find DNX runtime dnx-clr-win-x86.1.0.0-beta7 in the folder: C:\Users\appveyor.dnx\runtimes
    

    I was using beta7 before but now I've upgraded, but why is this project still looking for beta7 although I'm specifying beta8 in global.json.

  3. 3 Posted by Mohammad Rahhal on 20 Oct, 2015 09:58 AM

    Mohammad Rahhal's Avatar

    Ok, problem solved.
    The problem is in the place where global.json lives. It should be in the root of the project while it was in one of my project's subfolder. This way, the test project finds global.json and reads that the required sdk version is beta8.

  4. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

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