Nuget.org 在 visual studio 2015 更新 2 中不会获得 nuget 包
Nuget.org in visual studio 2015 update 2 wont get nuget packages
我有一个奇怪的错误。我无法使用 visual studio 2015 更新 2 下载 nuget 包。
我试图将 nuget.org 作为包源进行广告,但它 returns 404 错误
[nuget.org] The V2 feed at
'https://nuget.org/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26'
returned an unexpected status code '404 Not Found'.
[nuget.org] The V2 feed at
'https://nuget.org/odata/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26'
returned an unexpected status code '404 Not Found'.
[nuget.org] The V2 feed at
'https://nuget.org/odata/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26'
returned an unexpected status code '404 Not Found'.
我想安装 MVVM Light Toolkit,但我不能,因为它在 nuget.org
上可用
有人知道解决办法吗?
试试这个提要,这是我正在使用的提要:
https://api.nuget.org/v3/index.json
出于某种原因,我不得不编辑我的机器范围的配置,然后才能在 Visual Studio 2015
开始工作
在此路径打开文件:%ProgramData%\NuGet\Config[\{IDE}[\{Version}[\{SKU}\]]]NuGet.Config
并使用 SRO 建议的提要:https://api.nuget.org/v3/index.json
这是我特定机器配置的完整路径:`C:\ProgramData\NuGet\Config\VisualStudio.0\Microsoft.VisualStudio.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Microsoft and .NET"
value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
根据 Sylvian 提到的内容,我能够通过在 Visual Studio 2017 社区版中为我的所有项目(包括 .NET Core 等)添加源 https://api.nuget.org/v3/index.json 来使我的 nuget 包工作。所有nuget findbypackageid 404 错误消失了。
我有一个奇怪的错误。我无法使用 visual studio 2015 更新 2 下载 nuget 包。
我试图将 nuget.org 作为包源进行广告,但它 returns 404 错误
[nuget.org] The V2 feed at 'https://nuget.org/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26' returned an unexpected status code '404 Not Found'.
[nuget.org] The V2 feed at 'https://nuget.org/odata/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26' returned an unexpected status code '404 Not Found'.
[nuget.org] The V2 feed at 'https://nuget.org/odata/Search()?$filter=IsAbsoluteLatestVersion&searchTerm=''&targetFramework='uap10.0'&includePrerelease=true&$skip=0&$top=26' returned an unexpected status code '404 Not Found'.
我想安装 MVVM Light Toolkit,但我不能,因为它在 nuget.org
上可用有人知道解决办法吗?
试试这个提要,这是我正在使用的提要:
https://api.nuget.org/v3/index.json
出于某种原因,我不得不编辑我的机器范围的配置,然后才能在 Visual Studio 2015
开始工作在此路径打开文件:%ProgramData%\NuGet\Config[\{IDE}[\{Version}[\{SKU}\]]]NuGet.Config
并使用 SRO 建议的提要:https://api.nuget.org/v3/index.json
这是我特定机器配置的完整路径:`C:\ProgramData\NuGet\Config\VisualStudio.0\Microsoft.VisualStudio.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="Microsoft and .NET"
value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>
根据 Sylvian 提到的内容,我能够通过在 Visual Studio 2017 社区版中为我的所有项目(包括 .NET Core 等)添加源 https://api.nuget.org/v3/index.json 来使我的 nuget 包工作。所有nuget findbypackageid 404 错误消失了。