Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Cannot build with MSBuild - says Cannot find DNX Runtime

$
0
0

Hello,

I have an ASP.NET 5 project that I am trying to hook into TFS 2013 for automated builds.  The project will build on the machine if I load it in VS 2015 (tried loading the solution from the folder that the TFS build agent uses, logged in as the service account for the build agent).  It is currently targeting DNX RC 1-Update 1, the runtimes are in the service account's user\.dnx\runtimes folder, and I have updated the TFS build configuration to pass the toolsversion parameter for VS 2015 as an MSBuild argument (/tv:14.0).  However, when I try to run a build through MSBuild, I'm getting the following error: 

GetRuntimeToolingPathTarget:
Cannot find DNX runtime dnx-clr-win-x86 in the folder: C:\Users\<user>\.dnx\runtimes
2>C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DNX\Microsoft.DNX.targets(126,5): error : The Dnx Runtime package needs to be installed. See
output window for more details. 

I am curious about the version string that MSBuild reports (dnx-clr-win-x86), it does not seems to have any of the version number information (1.0.0-rc1-update1).  

Does anyone have any ideas what may be causing MSBuild to have issues with locating the DNX runtime, while VS does not?

Thanks a lot!
Jerry


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>