nuget-package-restore

VisualStudioOnline NuGet Restore now built in?

怎甘沉沦 提交于 2019-12-06 05:08:43
Is the Host Controller on Visual Studio Online now automatically restoring NuGet package before calling MSBuild? Previously I had to manually execute the following: nuget.exe restore MySolution.sln Now, when creating a new build in a new project, I noticed that I didn't need to do this. When looking at the build logs, I see this: This was a change in TFS 2013 Update 2 and is reflected in VS, TFS, and VSO... 来源: https://stackoverflow.com/questions/30037083/visualstudioonline-nuget-restore-now-built-in

MSBuild - Jenkins - Nuget integration

☆樱花仙子☆ 提交于 2019-12-06 04:31:48
We are experiencing some weird behavior using Jenkins and MSBuild. When manually typing into a command line to build a build.xml project: msbuild build.xml /T:Package /P:PublishProfile=Test /P:Platform="AnyCPU" /P:VisualStudioVersion=12.0 The build process works exactly as expected (build, packaging, etc.) However, if I am using Jenkins to do exactly this - that is - open a command line and run this exact command, I get an error saying: The command ""..\.nuget\NuGet.exe" install "C:\Jenkins\jobs\.....\workspace\MYPROJECT\packages.config" -source "" -NonInteractive -RequireConsent -solutionDir

NuGet package restore for solution fails (only on the command line)

六眼飞鱼酱① 提交于 2019-12-05 14:02:57
I've recently switched to NuGet's latest recommended method which is using a `packages.json' file for projects: { "dependencies": { "Newtonsoft.Json": "9.0.1", "RestSharpSigned": "105.2.3" }, "frameworks": { "net45": {} }, "runtimes": { "win": {} } } This works great in my local visual studio environment, but the CI server can no longer build the project. What's odd is that I can see the packages being successfully restored for the solution, but on build, MSBuild has no idea where those DLLs are and all references to them fail: Package Restore Succeeding: 09:48:07 Updating NuGet.exe to 3.4.4

Why is there no packages folder in .my NET Core solution's containing folder?

别说谁变了你拦得住时间么 提交于 2019-12-05 08:20:42
问题 Are packages now cached in a more shared location somewhere or what? My solution folder, devoid of any packages folder: 回答1: Per project: References->Nuget dictates what packages are referenced and restored. But, as Eastrall mentioned, the packages folder is now global and located in your user folder: C:\Users\[YourUsername]\.nuget\packages 回答2: To force ./packages folder for Solution To force download of packages folder to be a child of the solution folder for .NET Core projects, follow

How to use NuGet 3.0 with Visual Studio 2013?

﹥>﹥吖頭↗ 提交于 2019-12-04 23:36:17
I have a mixed environment where some developers are working on Visual Studio 2013, and others are working on 2015. Everything worked fine until we updated a referenced NuGet package from Visual Studio 2015. Now, when trying to restore the NuGet packages from Visual Studio 2013, I see the following error: NuGet Package restore failed for project Foo: The 'System.Linq 4.0.0' package requires NuGet client version '3.0' or above, but the current NuGet version is '2.8.60723.765'.. Apparently, there is no NuGet version 3.x for Visual Studio 2013. Is there a solution to continue working with both

TFS2017.2 NuGet restore task - ETIMEDOUT 93.184.221.200:443

☆樱花仙子☆ 提交于 2019-12-04 19:58:23
问题 I have couple of build definitions that are using the "old" NuGet Installer task to restore the dependencies from our internal TFS feed (same collection); the feed url is specified through the NuGet source parameter: The restore process is working fine as below: Switching to the newer version of the task is causing the build failure: How can I disable the connection attempt to 93.184.221.200:443 due to the fact that the build agent doesn't have internet access? I'm using TFS 15.117.26714.0.

Defaulting Package Management to PackageReference

孤人 提交于 2019-12-04 13:56:27
Is there any way in the Nuget.Config to default the Package Management option to "PackageReference"? I'm going to assume no since I didn't see it here but I thought I'd ask. I'm looking to default this on all developer machines for a certain repository and I was hoping I could change this in the Nuget.Config file that is stored in source control. This is what I'm talking about: In Visual Studio 2017 you can define the settings in a NuGet.Config file. <configuration> <packageManagement> <add key="format" value="1" /> <add key="disabled" value="False" /> </packageManagement> </configuration> The

Is it possible to create a cache of nuget packages for computers without internet?

白昼怎懂夜的黑 提交于 2019-12-04 05:05:43
问题 We have a build server, which doesn't have access to internet. It gets our source from a git server, then tries to build them. Currently, it fails(obviously) because this computer doesn't have internet access. I discussed it with IT, and they agree to let us connect it to internet to do some maintenance, but they refuse to let it connected all the time. My question is: Is it possible to create some kind of local nuget cache that we can populate when we do changes on packages, and then the

NuGet fails to find existing package

孤街醉人 提交于 2019-12-04 02:56:03
问题 How it's possible that NuGet's Install-Package fails with Unable to find version 'x' of package 'y' when that exact version is released as NuGet to official repository and it shown on the https://www.nuget.org/packages/y page. Here is specific sample with nuget.org content and NuGet Install-Package command output. UPDATE. Package sources are set to defaults (from nuget.org). Actually you can see the issue just running Install-Package Log4Net.Async -Version 1.3.0 . UPDATE 2. I want to

How to setup single Nuget packages folder for multiple solutions and projects in Visual Studio 2015

不打扰是莪最后的温柔 提交于 2019-12-03 23:50:12
We are developing multiple solutions in Visual Studio 2015. The solutions share some core projects that need nuget packages. The nuget references cannot be resolved when the nuget package is added from one solution and is later opened by another solution. The folder structure is as follows: Codebase SharedProjects SharedProject1 SolutionA WebProjectA packages folder A SolutionB WebProjectB packages folder B When I install a nuget package to SharedProject1 when SolutionA is opened, the dll reference shows the path to the packages folder A . When SolutionB is opened in another computer,