1
votes

I am migrating one API project from ASP.Net to ASP.Net Core. While trying to add a nuget package I am getting the below error:

unable to find metadata of system.memory.4.5.1

The .Net version I am using is: 2.1.0

1
which nuget package you added?Khai Nguyen
Thanks for teh reply. But it got resolved once i closed all the instances of visual studio and when i re opened it and tried I was able to install the package.Soumyashree Pattnaik
@Khai Nguyen: I was trying to add a common package which is used within our organisation.Soumyashree Pattnaik
I can see few weird errors while trying to install packages. One of them was the above onethe other one is as below:Soumyashree Pattnaik
Failed to fetch results from V2 feed at 'dcsartifacts.dell.com/artifactory/api/nuget/nuget-local/…' with following message : The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.Soumyashree Pattnaik

1 Answers

0
votes

Try to manually build a package with the switch -Verbosity detailed to get more information and make sure you use the correct MSBuild for x64 or x86.