有没有人知道在TeamCity Nuget Feed上删除特定版本的软件包?
当我尝试推送时,我的NuGet服务器正在抛出405 Not Allowed.至少,这就是NuGet控制台所说的:
Failed to process request. 'Method Not Allowed'.
The remote server returned an error: (405) Method Not Allowed..
Run Code Online (Sandbox Code Playgroud)
但是当我看到Fiddler的实际HTTP响应时,问题似乎完全不同:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code></code>
<message xml:lang="en-US">The URL representing the root of the service only supports GET requests.</message>
</error>
Run Code Online (Sandbox Code Playgroud)
关于可能发生的事情的任何想法?
谢谢!
我知道我们可以托管我们自己的私有/内部NuGet服务器,但有没有办法托管你自己的符号源服务器链接到你的私人NuGet包?我公司的政策不允许发布源代码,甚至包括SymbolSource.Org私有仓库.
谢谢.
remote-debugging debug-symbols nuget nuget-package nuget-server
NuGet 1.5状态的发行说明
NuGet now supports connecting to private repositories that require basic
or NTLM authentication.
Run Code Online (Sandbox Code Playgroud)
但是,其中包含的链接只会导致托管您自己的nuget供稿页面,而不再提及如何设置身份验证.
我想建立一个可通过互联网https访问的NuGet服务器,但只允许能够成功通过身份验证的人查看或下载服务器上的软件包.
我确实创建了一个没有auth的应用程序,如文档中的Creating Remote Feeds部分所述,它在Intranet上运行良好.如何在此repo上启用身份验证?
另外一个要求是解决方案不应该花费数百美元(前两个答案促进了可能解决问题但成本很高的产品).
我们正在使用改进的自动包恢复过程来恢复丢失的NuGet包.
构建时,恢复对话框会在从包源开始下载时弹出,这是正确的:
我可以看到包正在恢复到packages文件夹中,但它没有完成恢复所有这些.我收到以下类型的错误:
Error 10 NuGet Package restore failed for project MyProject: System.InvalidOperationException: Unable to find version '6.0.1' of package 'Newtonsoft.Json'.
at NuGet.PackageHelper.ResolvePackage(IPackageRepository repository, String packageId, SemanticVersion version)
at NuGet.VsEvents.PackageRestorer.RestorePackage(PackageReference package)
at NuGet.VsEvents.PackageRestorer.RestorePackages(String packageReferenceFileFullPath, IFileSystem fileSystem)
at NuGet.VsEvents.PackageRestorer.PackageRestore(ProjectPackageReferenceFile projectPackageReferenceFile).
Run Code Online (Sandbox Code Playgroud)
这可能是因为我有多个包源吗?
例如,NuGet可能会在我们的私有包源中搜索'Newtonsoft.Json',而不是在nuget.org
源代码中搜索.
该.nuget/NuGet.config
文件中:
<configuration>
<packageSources>
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
<add key="private" value="http://privatePackageSource.com/nuget" />
</packageSources>
<solution>
<add key="disableSourceControlIntegration" value="true" />
</solution>
</configuration>
Run Code Online (Sandbox Code Playgroud)
我们正在使用Visual Studio 2013和NuGet 2.8.5.
编辑:
使用Fiddler,我已经确认NuGet确实在不正确的源中搜索包.它从我的私有存储库请求以下包.
我也阅读了这篇文章并将该activePackageSource
部分添加到NuGet.config
文件中:
<configuration> …
Run Code Online (Sandbox Code Playgroud) nuget nuget-package nuget-server visual-studio-2013 nuget-package-restore
我的NuGet Installer构建步骤出了问题.
我们正在使用官方NuGet.org软件包和我们在TeamCity NuGet服务器上托管的软件包.如果我将Packages Sources留空,则会找到nuget.org中的包,但是一旦我指定%teamcity.nuget.feed.server%
为包源,就找不到nuget.org中的包.
我尝试将Packages Sources设置为包含两者,但它仍然不适用于官方nuget.org包.
https://nuget.org/api/v2/
%teamcity.nuget.feed.server%
Run Code Online (Sandbox Code Playgroud)
这不是nuget.org包源的正确URL吗?如何告诉它使用这两个来源?
我在JetBrains Developer讨论区问过这个问题,但没有得到任何答复.
我使用空的Web应用程序和nuget服务器包设置了一个私有nuget feed.这一切都正常,我可以从Feed中检索,我可以使用Nuget Package Explorer发布到私有Feed.但是我无法通过命令行发布 - 它会提示输入凭据.我已经在Appsettings中将Web应用程序中的ApiKey设置为一个简单的密码,我尝试将ApiKey添加到push命令.这会提示我输入用户名和密码.我也尝试过SetApiKey命令但是我得到了相同的行为.在构建服务器上,我尝试相同的结果.
以下是构建日志中的错误消息(标识信息x出来)
nuget pack "C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\Bxxxxxxxs.Web.Http.csproj" -IncludeReferencedProjects -Properties Configuration=Release
nuget SetApiKey Bxxxxxxx1 -Source http://tfs12.xxxxxxxrps.com/Nuget
nuget push *.nupkg -s http://tfs12.xxxxxxxrps.com/Nuget/
C:\Builds\2\OE Phase II\Common\bin\xxxxxxx.Web.Http.dll
1 File(s) copied
Attempting to build package from 'xxxxxxx.Web.Http.csproj'.
Packing files from 'C:\Builds\2\OE Phase II\Common\src\WebApi\Web.Http\bin\Release'.
Using 'xxxxxxxs.Web.Http.nuspec' for metadata.
Found packages.config. Using packages listed as dependencies
Successfully created package 'C:\Builds\2\OE Phase II\Common\bin\xxxxxxxs.Web.Http.1.0.0.0.nupkg'.
The API Key 'xxxxxxx' was saved for 'http://tfs12.xxxxxxxrps.com/Nuget'.
Pushing Bxxxxxxxrs.Data 1.0.0.0 to 'http://tfs12.xxxxxxxrps.com/Nuget/'...
Please provide credentials for: http://tfs12.xxxxxxxrps.com/Nuget/
Object reference …
Run Code Online (Sandbox Code Playgroud) 我目前正在寻找NuGet来解决我在TFS中的依赖问题,我想要做的是托管我自己的NuGet服务器,它将负责内部依赖.我也想使用NuGet来处理我的第三方依赖.我正在尝试为我们公司设置自动构建,这是我试图用NuGet克服的一个障碍.
另外,作为一个注释,我打算使用NuGet而不将包提交给TFS.我计划使用本文中的方法大纲:
http://blog.davidebbo.com/2011/08/easy-way-to-set-up-nuget-to-restore.html
我一直在寻找自我托管NuGet,很难理解如何设置它以及它将如何帮助支持我们的开发过程.
有没有人建议使用哪种,如何设置?
或者我应该只使用托管服务?
我正在尝试运行Nuget Gallery的本地安装,但得到与错误配置文件相关的500错误.但是,这仅在从IIS运行时发生.如果我从IIS Express运行它可以正常工作.任何人都可以给我任何指示吗?
Error Summary HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x8007000d Config Error Config File \\?\C:\inetpub\NuGetGallery\Website\web.config Requested URL http:\\[localhost]:80/Nuget Physical Path C:\inetpub\NuGetGallery\Website Logon Method Not yet determined Logon User Not yet determined Config Source -1: 0:
nuget-server ×10
nuget ×9
teamcity ×2
iis ×1
iis-7.5 ×1
ntlm ×1
push ×1
teamcity-7.0 ×1
tfs ×1
tfsbuild ×1