Disable all the package sources from VS -> Settings -> Package sources. And add one package source (say http://myget.org/F/Katana)
Now type> nuget install jQuery -verbosity Detailed to see diagnostic information.
1. If jQuery package is already in nugget local cache, this is the diagnostic information printed.
GET http://www.myget.org/F/Katana/FindPackagesById()?id='jQuery'
Installing 'jQuery 1.6.4'.
Successfully installed 'jQuery 1.6.4'.
2. If jQuery package is not found in the local cache, this is the information printed.
GET http://www.myget.org/F/Katana/FindPackagesById()?id='jQuery'
System.InvalidOperationException: Unable to find package 'jQuery'.
at NuGet.PackageHelper.ResolvePackage(IPackageRepository sourceRepository, IP
ackageRepository localRepository, IPackageConstraintProvider constraintProvider,
String packageId, SemanticVersion version, Boolean allowPrereleaseVersions)
at NuGet.PackageManager.InstallPackage(String packageId, SemanticVersion vers
ion, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, Strin
g packageId, SemanticVersion version)
at NuGet.Commands.InstallCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
In case (1) the diagnostics printed looks as if the package was installed from the myget feed. But this was installed from the local cache.
Expected:
Diagnostic information should help developers in understanding where the package loaded from.
Now type> nuget install jQuery -verbosity Detailed to see diagnostic information.
1. If jQuery package is already in nugget local cache, this is the diagnostic information printed.
GET http://www.myget.org/F/Katana/FindPackagesById()?id='jQuery'
Installing 'jQuery 1.6.4'.
Successfully installed 'jQuery 1.6.4'.
2. If jQuery package is not found in the local cache, this is the information printed.
GET http://www.myget.org/F/Katana/FindPackagesById()?id='jQuery'
System.InvalidOperationException: Unable to find package 'jQuery'.
at NuGet.PackageHelper.ResolvePackage(IPackageRepository sourceRepository, IP
ackageRepository localRepository, IPackageConstraintProvider constraintProvider,
String packageId, SemanticVersion version, Boolean allowPrereleaseVersions)
at NuGet.PackageManager.InstallPackage(String packageId, SemanticVersion vers
ion, Boolean ignoreDependencies, Boolean allowPrereleaseVersions)
at NuGet.Commands.InstallCommand.InstallPackage(IFileSystem fileSystem, Strin
g packageId, SemanticVersion version)
at NuGet.Commands.InstallCommand.ExecuteCommand()
at NuGet.Commands.Command.Execute()
at NuGet.Program.Main(String[] args)
In case (1) the diagnostics printed looks as if the package was installed from the myget feed. But this was installed from the local cache.
Expected:
Diagnostic information should help developers in understanding where the package loaded from.