When trying to build an Asp.net application the error
Cannot find DNX runtime dnx-clr-win-x86.1.0.0-rc1-final in the folder: C:\Windows\ServiceProfiles\NetworkService.dnx\runtimes
When I log on to our TFS build server to install the required dnx version using
dnvm install 1.0.0-rc1
it's installed in C:\Users\myusername.dnx\runtimes\dnx-clr-win-x86.1.0.0-rc1-update2.
Our Tfs build process is run with a domain account.
- How can I install the Dnx runtime in a more generic location?
- Why is the build process looking for the runtime from that location (NetworkService)?
Seems you need to install Visual Studio to get the required targets.
Right now the DNX MSBuild targets are only installed with Visual Studio 2015 (specifically the Web Development Tools component).
Take a look at this blog which may help you: Is DNX compatible with MSBuild already?