0

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.

  1. How can I install the Dnx runtime in a more generic location?
  2. Why is the build process looking for the runtime from that location (NetworkService)?
3
  • Are you using ASPNET 5? c-sharpcorner.com/UploadFile/efa3cf/… Commented Dec 7, 2016 at 13:14
  • I'm using Asp.Net Core, which is the new name for asp.net 5. Commented Dec 7, 2016 at 14:36
  • @MathiasR How do you create the Asp.Net Core project? Asp.Net Core does not use dnx anymore. It uses .NET CLI. Commented Dec 12, 2016 at 1:38

2 Answers 2

0

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?

Sign up to request clarification or add additional context in comments.

2 Comments

I have the target files. The problem is that dnx is installed in another folder from where the target is looking for it.
This may not be the really solution. You could use this workaround Migrating from DNX to .NET Core CLI DNX is a little out of date. As of v1, the .NET Core CLI tools don't have an install command for installing dependencies. In order to install a package from NuGet, you would need to add it as a dependency to your project.json file and then run dotnet restore. Installation: microsoft.com/net/download/core#/current Then you just need to add a nuget package restore in your build definition.
0

Your project is using "1.0.0-rc1-final" but the version installed with "dnvm install 1.0.0-rc1" command is 1.0.0-rc1-update2. So you need to run this command to install the final version:

dnvm install 1.0.0.-rc1-final

After this, you can run dnvm list command to check what version has been installed on your machine. And then you need to use dnvm use to choose the version. For example:

dnvm use 1.0.0-rc1-final -r clr -arch x86

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.