如何为我的自定义存储库制作 Nuget.config?

How to make Nuget.config for my custom repository?

我的项目必须使用 Infragistics。 这是目前的情况(Package Sources)

看来我还没有说明来意。我试图从我的 NuGet 包管理器中删除 Nuget.org(在 VS 2019 中提交和同步)。我的 Nuget.config

    <?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <!--To inherit the global NuGet package sources remove the <clear/> line below -->
    <add key="Infragistics" value="http://localhost:8624/nuget/Infragistics/v3/index.json" />
  </packageSources>
</configuration>

使用此设置,我的 App Center 构建失败

2021-09-22T10:02:09.7806767Z   GET http://localhost:8624/nuget/Infragistics/FindPackagesById()?id='Xamarin.Forms'&semVerLevel=2.0.0
2021-09-22T10:02:09.7807611Z Retrying 'FindPackagesByIdAsyncCore' for source 'http://localhost:8624/nuget/Infragistics/FindPackagesById()?id='Infragistics.Web.Documents.Core'&semVerLevel=2.0.0'.
2021-09-22T10:02:09.7810957Z An error occurred while sending the request.
2021-09-22T10:02:09.7811349Z   Unable to connect to the remote server

有人知道我应该更改什么吗?

根据 Infragistics 文档。您可以简单地引用 Nuget 提要而不是使用本地源。

参考 -> https://www.infragistics.com/help/winforms/nuget-feeds#adding_infragistics_feed