當我嘗試推送時,我的NuGet服務器拋出405不允許。至少,那是什麼的NuGet控制檯說:405 NuGet Push中不允許的方法
Failed to process request. 'Method Not Allowed'.
The remote server returned an error: (405) Method Not Allowed..
但是,當我看與小提琴手實際的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>
任何想法?
謝謝!
如果你在這裏看到這個問題,確保你按照OP的要求來做,並且檢查HTTP響應,但並不是所有的405都是一樣的,NuGet也不會給你完整的細節。 – Liam 2017-12-07 14:19:09