I'm trying to compile a Visual Studio project with NuGet package restore under MonoDevelop but it's not working out of the box.
NuGet should work on Mono and there's even support built into nuget.targets, so what is missing?
Restore packages manually or automatically After you enable package restore in Options, you can right-click the solution in Solution Explorer and select Restore NuGet Packages to restore packages anytime.
Quick solution for Visual Studio usersSelect the Tools > NuGet Package Manager > Package Manager Settings menu command. Set both options under Package Restore. Select OK. Build your project again.
To update all packages in your solution, first restore them, and then you can either use NuGet.exe to update the packages, or you can update the packages from the Package Manager Console window within Visual Studio (see below), or finally you can use the Manage Packages dialog.
NuGet cache is typically located in ~/. local/share/NuGet/Cache while dnu cache is located in ~/. local/share/dnu/cache .
Based on issue tracked here: https://nuget.codeplex.com/workitem/3278
$(SolutionDir)/ /packages
(yes, theres a single whitespace folder in between). The reason is that there's a trailing whitespace in nuget.targets in after $(SolutionDir)
in <RestoreCommand>$(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) "</RestoreCommand>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With