nuget-server

How to pass credentials when accessing a Nuget feed

拟墨画扇 提交于 2020-07-10 05:18:12
问题 I am trying to download packages from a Nuget repository which requires credentials for it to be accessed using NuGet.Core. I know that Nuget repositories with no authentication can be accessed as follows: //ID of the package to be looked up string packageID = "EntityFramework"; //Connect to the official package repository IPackageRepository repo = PackageRepositoryFactory.Default.CreateRepository("https://packages.nuget.org/api/v2"); //Initialize the package manager string path = <PATH_TO

How to pass credentials when accessing a Nuget feed

放肆的年华 提交于 2020-07-10 05:17:45
问题 I am trying to download packages from a Nuget repository which requires credentials for it to be accessed using NuGet.Core. I know that Nuget repositories with no authentication can be accessed as follows: //ID of the package to be looked up string packageID = "EntityFramework"; //Connect to the official package repository IPackageRepository repo = PackageRepositoryFactory.Default.CreateRepository("https://packages.nuget.org/api/v2"); //Initialize the package manager string path = <PATH_TO

How to pass credentials when accessing a Nuget feed

折月煮酒 提交于 2020-07-10 05:17:12
问题 I am trying to download packages from a Nuget repository which requires credentials for it to be accessed using NuGet.Core. I know that Nuget repositories with no authentication can be accessed as follows: //ID of the package to be looked up string packageID = "EntityFramework"; //Connect to the official package repository IPackageRepository repo = PackageRepositoryFactory.Default.CreateRepository("https://packages.nuget.org/api/v2"); //Initialize the package manager string path = <PATH_TO

NuGet Package Dependencies

懵懂的女人 提交于 2020-04-13 03:42:56
问题 Is it true that for every dependency that a package has on some other library, that those libraries need to be resolved and installed as well? For example, I created a package which uses NLog , Postsharp and WindowsAzure.Storage : Do clients of my package now have to install these packages as well? Why is it not possible to include these dependency DLLs within the package? 回答1: When a consumer installs your nuget package, nuget will automatically resolve and install the dependent packages as

Installing private feed Nuget packages from packages.config

女生的网名这么多〃 提交于 2020-01-24 10:19:12
问题 I have a private nuget feed on one of our internal servers. I can install packages in this feed from command line like this nuget install "PackageName" -source "\\DevServer\NugetFeed" However if I try to install the packages from our packages.config file like this nuget install "MyProject\Packages.config" -source "\\DevServer\NugetFeed" It errors with can't find package for each of the packages in my packages.config file. It looks like it's ignoring the -Source switch and looking in a

NuGet 2.2.3 extention problems. Cannot connect to server?

怎甘沉沦 提交于 2020-01-07 02:28:25
问题 I have project where NugGet is used. I am trying to build project and i have next errors: ... Error 88 Unable to find version '2.1.505.2' of package 'Unity'. Common Error 84 Unable to find version '1.0' of package 'CommonServiceLocator'. Common Error 90 The command ""D:\Development\root\.nuget\nuget.exe" install "D:\Development\root\Common\packages.config" -source "" -RequireConsent -solutionDir "D:\Development\root\ "" exited with code 1. common Also i get error when trying to download

How should I tell TeamCity's NuGet Installer build step to use both NuGet.org and the TeamCity provided packages source?

风流意气都作罢 提交于 2020-01-01 07:39:09
问题 I'm having trouble with my NuGet Installer build step. We're using both official NuGet.org packages and our own packages hosted on the TeamCity NuGet server. If I leave Packages Sources blank, then packages from nuget.org are found, but as soon as I specify %teamcity.nuget.feed.server% as the package source, then packages from nuget.org are not found. I tried setting Packages Sources to include both, but it still isn't working for official nuget.org packages. https://nuget.org/api/v2/

404 when listing packages via NugetCommandLine

北城以北 提交于 2019-12-24 11:02:09
问题 I'm getting a 404 when performing nuget list -source http://mydomain/nuget The 404 is actually coming from /Nuget/$metadata. From the iis logs: 2011-10-17 23:24:27 172.27.72.94 GET /Nuget/$metadata - 80 - {ipAddress} - 404 0 2 46 Anyone have any ideas as to what may be causing this? FWIW I can successfully publish via the cmd. 回答1: I figured it out. I had to do: nuget list -source http://mydomain/nuget/api/feeds 来源: https://stackoverflow.com/questions/7800832/404-when-listing-packages-via

error while trying to push nuget package from VSTS

匆匆过客 提交于 2019-12-23 12:58:43
问题 I added dotnet task (.Net Core) to do a nuget push. In the Nuget server section it asked me to use create a new Nuget Connection. I went with the API Key option and game in connection name,Feed URL, and API Key. when I run this step I get the following error Error: DotNetCore currently does not support using an encrypted Api Key. is this a limitation or am i doing something wrong? Please note from my desktop I am about to create package and push the package using apikey. 回答1: Pushing package

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