`The Dnx Runtime package needs to be installed` error
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
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

1 Posted by Mohammad Rahhal on 20 Oct, 2015 08:56 AM
Ok I think I found out why. Locally I've been using sdk version
rc1while in my install script on appveyor I was installingbeta8version so the runtime was looking fordnx.1.0.0-rc1.I think I also have to edit
Added "test" so that the test project would also build.global.jsonto the following:Will post back the results.
2 Posted by Mohammad Rahhal on 20 Oct, 2015 09:43 AM
The main dnx project is building correctly now, but the test project is still failing.
The build is still looking for
beta7and I have no idea why:I was using
beta7before but now I've upgraded, but why is this project still looking forbeta7although I'm specifyingbeta8inglobal.json.3 Posted by Mohammad Rahhal on 20 Oct, 2015 09:58 AM
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.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.