FAQ Database Discussion Community


Visual Studio 2015 RC1 - Manage Nuget packages for solution

visual-studio-2005,nuget,nuget-package-restore
When opening the Nuget Package Manager in VS2015RC1 on the solution level and filtering on installed/update available I get a list of all available packages within my solution. But when I try to upgrade a package it has ALL projected within the solution selected by default which is not what...

Error “No file format header found.” running NuGet restore

msbuild,nuget-package-restore
When I run Nuget.exe restore [path]\packages.config -PackagesDirectory [path]\build\packages it works as expected. However, the command Nuget.exe restore [path]\bigpackages.config -PackagesDirectory [path]\build\packages fails with the error: No file format header found. This is the case, even if I copy the packages.config file and rename it to bigpackages.config....

NuGet restore progressive failures

nuget,nuget-package,nuget-package-restore
Why would I be getting different NuGet restore build failures on the exact same changeset over 3 manually-triggered, consecutive builds? The fourth build was successful. I double checked on NuGet's twitter feed and there was no report of any issues or downtime. This is occurring on the following command: nuget.exe...

NuGet restore issue when downloading solutions from github

visual-studio,github,nuget-package-restore
I have a project on Github which I have made on my laptop https://github.com/Mech0z/Foosball9000 However now I am on my desktop and I have trouble getting the solution to compile and I am not sure why NuGet do not want to restore my packages? Its packages like System.Web.Http and Castle...

VisualStudioOnline NuGet Restore now built in?

msbuild,nuget,visual-studio-online,tfs2013,nuget-package-restore
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...

Wrong version number in packages folder when using “nuget.exe restore solution”

visual-studio,visual-studio-2012,nuget,nuget-package-restore
On some host, when using nuget.exe restore solution.sln to force package restoration before build, I observe that command does not behave in identicall way compare to Nuget visual plugin. On some host the command version append the build number (default value 0) to the version number, causing the path in...

Could not resolve this reference: NuGet on CI server

.net,tfs,nuget,tfsbuild,nuget-package-restore
I'm running a CI build on a TFS build controller, connected to VS Online. I've got a 'Could not resolve this reference' problem for a NuGet package and I've observed behavior that I haven't seen before: Locally the pacakage is downloaded to packages\FluentValidation.5.5.0 whereas on the server, it's downloaded to...

New Automatic NuGet package resotore and NuGet.Config

.net,visual-studio-2013,msbuild,nuget,nuget-package-restore
I'm migrating to new version of Automatic package restore as described in docs This documents says, that .nuget folder should be removed completely. Including NuGet.Config, that contained a property, we need: <config> <add key="repositoryPath" value="..\..\..\commonNugetPackages" /> </config> So how one should specify path where packages should be restored? Update: Updating...

An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out

visual-studio-2013,nuget,nuget-package-restore
When I right-click my solution and click "enable nuget package restore" I get the message: Configuring the solution to restore NuGet packages on build... And after that the error: An error occurred while configuring the solution to restore NuGet packages on build. The operation has timed out What can it...

how to create nuspec file in specific folder?

nuget,nuget-package,nuget-package-restore,nuspec
I tried to create .nuspec file in a different folder by giving path but it is giving me error Nuget.exe spec ..\MYDEMOFOLDER Nuget.exe pack ..\MYDEMOFOLDER\MYPROJECT.csproj pause want to create MYPROJECT.nuspec in ..\MYDEMOFOLDER folder location getting error to create nuspec file The package ID '..\MYDEMOFOLDER' contains invalid characters. Examples of valid...

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

.net,tfsbuild,tfs2013,xunit.net,nuget-package-restore
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...

NuGet fails to find existing package

c#,nuget,nuget-package,nuget-package-restore
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...