推送到私人nuget飼料提示證書
我已經使用空的Web應用程式和nuget伺服器包設定了一個私有的nuget feed.這是一切正常,我可以從飼料檢索,我可以釋出到私人飼料使用Nuget包資源管理器.
但是我不能通過命令列釋出 – 它提示憑據.我已經在Appsettings中的Web應用程式中設定了ApiKey,使用了一個簡單的密碼,我已經嘗試將ApiKey新增到push命令中.這提示我一個使用者名稱,然後一個密碼.
我也嘗試過SetApiKey命令,但我也得到相同的行為.
在構建伺服器上,我嘗試使用相同的結果.
以下是構建日誌中的錯誤訊息(識別資訊x’d out)
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 not set to an instance of an object. UserName: Password:
找到的解決方案Windows Server 2012和Nuget.Server 2.8.5
>開啟IIS管理器
找到你的“Nuget.Server”應用程式
>右鍵單擊並選擇“編輯許可權”
>轉到“安全”選項卡
為“Everyone”組新增“寫入”許可權.
http://stackoverflow.com/questions/20228184/pushing-to-private-nuget-feed-prompts-for-credentials