nuget-package-restore

VSTS Nuget Installer fails to authenticate with package feed

时光怂恿深爱的人放手 提交于 2019-12-23 01:13:21
问题 I have a package feed on VSTS providing several packages that I reference in a solution that is also being built on VSTS. The builds have suddenly started failing at the package restore phase with the logs indicating that it cannot find the dlls nuget is supposed to restore. Restoring NuGet package Basd.Diagnostics.0.7.0. WARNING: Unable to find version '0.7.0' of package 'Basd.Diagnostics'. The public / private feeds are listed in my nuget.config and they also show up in the build logs

Visual Studio 2017 Nuget.config at solution folder not recognized

会有一股神秘感。 提交于 2019-12-22 11:37:24
问题 I'm having issue with visual studio 2017, where new solution keeps referencing the Nuget.config file in unexpected location in 'C:\Users\yopa\AppData\Roaming\NuGet\Nuget.config'. I've added '/.nuget/Nuget.config' file to my solutions folder. However, the solution is still referencing the nuget configuration file in the 'C:\', and the nuget packages are being restored in 'C:\' package folder as well. How do I configure my solution to honour package.config file in its directory? I've tried

Visual Studio local workspace + Enable Nuget Package Restore (disableSourceControlIntegration)

不打扰是莪最后的温柔 提交于 2019-12-22 10:46:22
问题 I was happy with disableSourceControlIntegration = true (and /packages/ not checked-in to TFS) in server workspace. Now I decided to try local workspace and boom - it finds thousands of 'Detected Changes' in /packages/, which should be ignored because of disableSourceControlIntegration = true in my NuGet.Config Anyone got local workspace and package restore working together? I believe that adding .tfignore is a really bad option. Btw, I'm using VS13. 回答1: In your solution directory root,

How to use NuGet 3.0 with Visual Studio 2013?

柔情痞子 提交于 2019-12-22 03:30:51
问题 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,

Nuget restore fails for ASP.NET Core 2.0 project on build server

谁说胖子不能爱 提交于 2019-12-22 03:21:45
问题 I am trying to build an ASP.NET Core 2.0 application for .NET Framework 4.6.2 (not .NET Core) with TeamCity on Windows Server 2012R2. The following components are installed in the server: Microsoft .Net Core SDK - 2.0.0.0 Microsoft .Net Framework (4.5.2, 4.6, 4.6.2) Microsoft Build Tools (2013, 2015, 2017) Windows SDK 10.0 ... TeamCity uses nuget version 4.1 and the solution file to restore dependent packages (see full log below for details). Error: [22:57:51] [22:57:51]Errors in C:\path\to

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

a 夏天 提交于 2019-12-21 07:27:42
问题 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

Unauthorized nuget package from Visual Studio Team Services using asp.net core rc2

核能气质少年 提交于 2019-12-21 04:21:27
问题 I am unable to install/restore nuget packages from a Visual Studio Team Services feed in an asp.net core web application (RC2). I receive the following: error: Response status code does not indicate success: 401 (Unauthorized). I am running Visual Studio Community 2015 Update 2 and nuget version 3.4.4. I am able to install/restore packages from this feed in other project types. Do I need to do something else to pass my credentials for an asp.net core web app? Steps to reproduce: From Team

TFS 2013 Build Controller Not Respecting NuGet Package Restore

微笑、不失礼 提交于 2019-12-19 16:57:34
问题 We are using VSO with an on-prem build controller (TFS 2013). I've enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecated way with the .nuget folder). Inside VS, restoring packages works just fine, however the build controller does not restore NuGet packages. The build controller runs under a service account and if I start VS (on the build server) as the service account and build my code it DOES restore the packages. How can I get the build

TFS 2013 Build Controller Not Respecting NuGet Package Restore

好久不见. 提交于 2019-12-19 16:57:05
问题 We are using VSO with an on-prem build controller (TFS 2013). I've enabled NuGet package restore in the Options menu of Visual Studio (migrated away from the old, deprecated way with the .nuget folder). Inside VS, restoring packages works just fine, however the build controller does not restore NuGet packages. The build controller runs under a service account and if I start VS (on the build server) as the service account and build my code it DOES restore the packages. How can I get the build

Assets file project.assets.json not found. Run a NuGet package restore

可紊 提交于 2019-12-17 10:22:12
问题 I'm trying to use nopCommerce(Which is written in .NET Core) but when I want to run the project I face 52 Errors telling me Run a nuget package restore Assets file ~\obj\project. assets.json' not found. Run a NuGet package restore to generate this file. Nop.Web.MVC.Testsote when I use the right click on the solution and selecting Restore Nuget Packages I get this message: All packages are already installed and there is nothing to restore. but those 52 Errors are still there and in Tools ->