I updated my VS to 15.7.3 version today and now my Nuget panel with installed packages is empty. Not empty but showing only System.Runtime.
I have a packages.config file in my project and everything worked just fine before the update.
Also the solution wont build. It is showing the following error
This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Microsoft.Bcl.Build.1.0.21\build\Microsoft.Bcl.Build.targets. C:\Users\User\Source\Repos\xxxx1-sol\xxxx1\xxxx1.csproj 6039
What might be the problem ?
Update 1
I tried installing all of the packages again and after I installed a couple of them I saw this in References
Update 2:
I tried deleting the .packages folder before installing the packages again via Nuget and the folder .packages was not created
My project path is C:\Users\User\Source\Repos\Project123-Git
Also I see that now I have a folder .nuget at C:\Users\User.nuget that has the folder packages in it.
I also tried deleting the file packages.config but Nuget still has my newly installed packages even if packages.config does not exsist
After a suggestion on Github Nuget page I managed to find a solution
https://github.com/NuGet/Home/issues/7013
I unloaded the project, opened the project file and removed all the PackageReference nodes from it. I then deleted the obj folder and Nuget started recognizing my packages again. Project now builds just fine.
Thank you all for your help
Related
Severity Code Description Project File Line Suppression State
Error Could not install package 'Xamarin.Android.Support.v4 28.0.0.3'. You are trying to install this package into a project that targets '.NETPortable,Version=v4.5,Profile=Profile78', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
If Manage Packages is for Forms project , can not install Xamarin.Android.Support.v4 nuget package .(AppEntryTest is name of my project)
You need to open Manage Packages for Solution (Right click solution -> select Manage Nuget Packages for solution..)
then can install as follow :
I have a project in .NetStandard2.0 and this has to be used as a nuget in 2 projects, one in .NetCore2.2 and the other in .NetFramework4.6.2. Installing the nuget in .NetCore2.2 had no issues, but when I'm trying to install this package in the other project, I'm getting the following error -
Could not install package 'packageName'. You are trying to install
this package into a project that targets
'.NETFramework,Version=v4.6.2', but the package does not contain any
assembly references or content files that are compatible with that
framework. For more information, contact the package author.
I also tried changing the target framework of this project from .NetFramework4.6.2 to .NetFramework4.7.2, but I'm getting the same error. Am I doing something wrong?
I had opened the Framework project in Visual Studio 2015 and this was causing the issue on trying to install the nuget package which was created in .NetStandard2.0. It was successfully installed when I tried it in Visual Studio 2017.
I forked a meteor package on github at https://github.com/kfirufk/angular2-meteor-accounts-ui
now I want to install it on a meteor project that I have. there are tons of information on the net, some recommend using meteorite, others recommend using mgp... but all the information that i find is for very old version of meteor and nothing actually works!
any information regarding the issue would be greatly appreciated.
update
I created packages directory inside the root directory and cloned the github package to that directory.
I edited .meteor/packages file and added angular2-meteor-accounts-ui.
now when i run the meteor application i get the following error:
While selecting package versions:
error: unknown package in top-level dependencies:
angular2-meteor-accounts-ui
angular2-meteor-accounts-ui is the name of the package of the github project i cloned (in package.json).
If I understand the question correctly, this is the procedure I've done myself, and it works:
Stop the app
edit the packages file and add the package name of your git fork
clone your git fork inside the packages folder of your meteor project. When you start meteor, packages inside that folder take precedence over the Internet, so once it finds the package there, it will not check the one in atmospherejs for download.
Note: if you want the package to be part of your project code, just remove .git inside the package clone, and add the whole folder to your app repo.
I am testing Asp.net 5 (vnext) in Linux Ubuntu 14.04.3 LTS and I would like to know where is located Nuget cache to properly set local repository in Nuget.Config.
Anyone know?
The global-packages folder is where NuGet installs any downloaded
package. Each package is fully expanded into a subfolder that matches
the package identifier and version number. Projects using the
PackageReference format always use packages directly from this folder.
When using the packages.config, packages are installed to the
global-packages folder, then copied into the project's packages
folder.
Windows: %userprofile%\.nuget\packages
Mac/Linux: ~/.nuget/packages
You can also view global-packages location using below command
dotnet nuget locals global-packages --list
Typical output (Mac/Linux; "user1" is the current username):
info : global-packages: /home/user1/.nuget/packages/
For all folders used by NuGet to manages packages and package information use below command
dotnet nuget locals all --list
For more details
NuGet cache is typically located in ~/.local/share/NuGet/Cache while dnu cache is located in ~/.local/share/dnu/cache.
i'm trying to migrate a project into my visual studio 2012.
On the Manage NuGet Packages, I have this issue:
"Some NuGet Packages are missing from this solution. Click to restore from your online package sources"... but when i click on the restore button, it appears this issue:
"an error occurred while trying to restore packages: Unable to find version '4.1.0-alpha-121112' of package 'Microsoft.AspNet.WebApi'. "
i'm using .NET Framework 4
How can i solve?
Thanks in advance....
The problem is that version '4.1.0-alpha-121112' of package Microsoft.AspNet.WebApi does not exist on NuGet.org. It is not available on MyGet from the ASP.NET Web Stack Nightly package source either. So NuGet cannot restore it since it is no longer available.
Looking at Symbol Source it looks like this NuGet package was at one point available from the ASP.NET Web Stack Nightly package source on MyGet but it no longer seems to be available. I suspect they have deleted the old packages from that MyGet package source.
Unless you can find the original NuGet package, you will either have to manually remove the NuGet package reference, by editing the project file and packages.config file, and reinstall a version that exists.
1) Make sure you upgrade to the latest NuGet.
2) Make sure you're doing package restore "The Right Way" http://blog.davidebbo.com/2014/01/the-right-way-to-restore-nuget-packages.html
That should resolve the issue.
if still this ain't solve you can see this Rightway to migrate