nuget-package-restore

Restoring all Nuget Packages in a Visual Studio 2015 Solution

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-03 17:27:37
问题 I have read many of the answers on SO and NuGet (and the Internet in general, really), but I can't seem to overcome the problem I am having with NuGet package restore in Visual Studio 2015. I have the following scenarios. Solution A Structure --Project A If I open and build Solution A I see the dialog box that shows the nuget package restore progress and the solution builds successfully. Solution B Structure --Project A --Project B However, assuming that I have never built Solution A (i.e.

Restoring all Nuget Packages in a Visual Studio 2015 Solution

孤街醉人 提交于 2020-01-03 17:26:27
问题 I have read many of the answers on SO and NuGet (and the Internet in general, really), but I can't seem to overcome the problem I am having with NuGet package restore in Visual Studio 2015. I have the following scenarios. Solution A Structure --Project A If I open and build Solution A I see the dialog box that shows the nuget package restore progress and the solution builds successfully. Solution B Structure --Project A --Project B However, assuming that I have never built Solution A (i.e.

Cannot restore nuget packages on VSTS (Packages failed to install)

本秂侑毒 提交于 2020-01-03 16:01:16
问题 I'm using Visual Studio Team Services to build a .NET solution. I have a Nuget Installer task to restore the packages of the solution that is configured as follows: Nuget.config file has 2 package sources - one is nuget.org (v2) and the other is a custom feed (Nuget Server v2.5.40416.9020). All packages from the nuget.org feed are restored but the ones from the custom feed are not, for each package from the custom feed there is an error message like this: Unable to find version 'abc' of

Failure to build on VS Online because of Nuget, works locally

这一生的挚爱 提交于 2020-01-03 06:21:50
问题 Running locally in VS2015. Everything builds fine. If I deploy to VS Online, the build fails as it cannot find HTML Agility Pack, which is in the solution as a Nuget package. I have checked that Restore NuGet Packages is ticked in VS Online. Any thoughts on anything I'm not doing. 回答1: OK, I seem to have found the problem. The packages had been checked into source control. Not sure if they should or not, but there we are. By removing them from the packages folder, it then seemed to restore

'Portable.BouncyCastle' already has a dependency defined for 'System.Collections'

北战南征 提交于 2019-12-25 01:19:32
问题 This error occurs on the Bamboo build server during a command that restores my solution's NuGet packages. I can bypass this error by disabling the package restore task; however, this is only a temporary fix. Is there any way I can check if the dependency exists while running the task? This error occurs before MSBUILD is running. I am using .NET 4.5 回答1: The already has a dependency defined for error when installing a NuGet package is due to a bug in older versions of NuGet. You should look at

Having trouble enabling the NuGet version of XUnit.NET on Team Build 2013

有些话、适合烂在心里 提交于 2019-12-24 03:43:33
问题 I would like to use Xunit as a test framework. I've created test project, added two nuget packages (xunit and xunit.runner.visualstudio) and everything works great. Visual Studio discover tests. But how can I configure TFS 2013 build to discover that tests? What's the proper way to do that? I found a lot of tips but I think all are related to old test runner which was downloaded as Visual Studio Extensions instead of the current NuGet package. 回答1: With the introduction of the NuGet based

NuGet restoring packages but missing DLLs

狂风中的少年 提交于 2019-12-23 19:57:02
问题 I've had a Visual Studio solution running successfully on my machine but when I've committed the changes to BitBucket and another user has pulled down the project and built it on either Visual Studio or TeamCity we've received errors such as: error CS0234: The type or namespace name 'Entity' does not exist in the namespace 'System.Data' (are you missing an assembly reference?) When I've looked at the project, I can see that each NuGet package folder is present but the DLLs are missing. This

NuGet does not unpack assemblies from package

六月ゝ 毕业季﹏ 提交于 2019-12-23 11:54:16
问题 Environment: VS Enterprise 2015 Update 1, Package Manager Console Host Version 3.3.0.167 Steps to reproduce: just create a new project (e.g. console application) targetting .Net 4.5.2 (but tried with other .net versions as well). When I install a nuget package, the package is downloaded and seemingly installed without error. However, nuget does not add a reference to the dll. When looking in the packages folder, it turns out that there are no .dlls unpacked, although the .nupkg file is there

Package destination of restore of .net-core projects is always global package directory

谁说我不能喝 提交于 2019-12-23 04:32:26
问题 We have a solution in which some projects are .net-core projects and some are "normal" .net 4.6.1 projects. On solution level we have a NuGet.config-File which sets the repositoryPath: <configuration> <config> <add key="repositoryPath" value="packages" /> </config> </configuration> The packages listed in the projects packages.config-Files are getting downloaded into the path specified in Nuget.config -> repositoryPath but the packages specified in the .net-core Project files (via

Package destination of restore of .net-core projects is always global package directory

倖福魔咒の 提交于 2019-12-23 04:32:02
问题 We have a solution in which some projects are .net-core projects and some are "normal" .net 4.6.1 projects. On solution level we have a NuGet.config-File which sets the repositoryPath: <configuration> <config> <add key="repositoryPath" value="packages" /> </config> </configuration> The packages listed in the projects packages.config-Files are getting downloaded into the path specified in Nuget.config -> repositoryPath but the packages specified in the .net-core Project files (via