aspnetcore icon indicating copy to clipboard operation
aspnetcore copied to clipboard

There are no runtimes matching the name dnx-clr-win-x86 on feed https://www.nuget.org/api/v2.

Open argium opened this issue 10 years ago • 7 comments

I've been following this guide - https://www.visualstudio.com/docs/release//examples/azure/aspnet-core10-azure-web-apps - to get a .NET Core web app to build on VSTS. I've created the project, it builds locally. Then I've added the powershell scripts and updated the build definition appropriately. The build fails with this error.

2016-05-21T05:04:47.4366551Z . 'C:\a\1\s\website\Prebuild.ps1' -sourceDir C:\a\1\s\pub
2016-05-21T05:04:47.5290858Z Executing the following powershell script. (workingFolder = C:\a\1\s)
2016-05-21T05:04:47.5300848Z C:\a\1\s\website\Prebuild.ps1 -sourceDir C:\a\1\s\pub
2016-05-21T05:04:52.0981353Z Using temporary directory: C:\Users\BUILDG~1\AppData\Local\Temp\dnvminstall
2016-05-21T05:04:52.1991357Z Downloading DNVM.ps1 to C:\Users\BUILDG~1\AppData\Local\Temp\dnvminstall\dnvm.ps1
2016-05-21T05:04:52.2878806Z Downloading DNVM.cmd to C:\Users\BUILDG~1\AppData\Local\Temp\dnvminstall\dnvm.cmd
2016-05-21T05:04:52.3485480Z Installing DNVM
2016-05-21T05:04:53.6090336Z Installing .NET Version Manager to C:\Users\buildguest\.dnx\bin
2016-05-21T05:04:53.6210338Z Creating destination folder 'C:\Users\buildguest\.dnx\bin' ... 
2016-05-21T05:04:53.6260336Z Installing 'dnvm.ps1' to 'C:\Users\buildguest\.dnx\bin' ... 
2016-05-21T05:04:53.7226766Z Installing 'dnvm.cmd' to 'C:\Users\buildguest\.dnx\bin' ... 
2016-05-21T05:04:53.7266757Z Adding C:\Users\buildguest\.dnx\bin to Process PATH
2016-05-21T05:04:53.7596765Z Adding C:\Users\buildguest\.dnx\bin to User PATH
2016-05-21T05:04:54.8438125Z ##[error]There are no runtimes matching the name dnx-clr-win-x86 on feed https://www.nuget.org/api/v2.
2016-05-21T05:04:54.8448127Z ##[error]At C:\Users\buildguest\.dnx\bin\dnvm.ps1:619 char:9
2016-05-21T05:04:54.8448127Z ##[error]+         throw "There are no runtimes matching the name $RuntimeId on feed $feed. ...
2016-05-21T05:04:54.8458124Z ##[error]+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2016-05-21T05:04:54.8458124Z ##[error]    + CategoryInfo          : OperationStopped: (There are no ru...get.org/api/v2.:String) [], RuntimeException
2016-05-21T05:04:54.8468127Z ##[error]    + FullyQualifiedErrorId : There are no runtimes matching the name dnx-clr-win-x86 on feed https://www.nuget.org/ap 
2016-05-21T05:04:54.8468127Z ##[error]   i/v2.
2016-05-21T05:04:54.8478125Z ##[error] 
2016-05-21T05:04:54.8488126Z ##[error]Process completed with exit code 1 and had 1 error(s) written to the error stream.

Not sure where to start. The package should obviously be there on the NuGET feed.

argium avatar May 21 '16 05:05 argium

@rifuller

Are you trying to build a RC1 project? The Prebuild.ps1 you're using was the RC1 pre-build script to bootstrap the DNX environment which isn't used anymore for RC2.

That article is old.

SimonOrdo avatar May 27 '16 16:05 SimonOrdo

Without the prebuild script build fails with:

website\src\website\website.xproj(7,3): Error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk.

It looks like .NET Core just isn't supported in VSTS yet?

argium avatar May 28 '16 19:05 argium

Yeah... I haven't been able get a reply on that myself. See https://github.com/aspnet/Home/issues/1510

SimonOrdo avatar Jun 02 '16 15:06 SimonOrdo

Hi,

any help on this is much appreciated. We are unable to build on hosted agent due to the above mentioned error.

bveerendrakumar avatar Jun 09 '16 13:06 bveerendrakumar

Since .net core has gone to v1, can the process for building on VSTS be explained now?

irwinwilliams avatar Sep 30 '16 12:09 irwinwilliams

Well it should be pretty simple.

Software present on hosted agent: https://www.visualstudio.com/en-us/docs/build/admin/agents/hosted-pool#software

Normally you publish a .NET Core application by doing a dotnet publish -o [OutputPathHere].

In fact, instead of going in length about how to do it.... let's check the official documentation.

😄

MaximRouiller avatar Sep 30 '16 13:09 MaximRouiller

This issue is being closed because it has not been updated in 3 months.

We apologize if this causes any inconvenience. We ask that if you are still encountering this issue, please log a new issue with updated information and we will investigate.

aspnet-hello avatar Dec 30 '17 23:12 aspnet-hello