有谁知道如何将自定义软件包源添加到Visual Studio 代码?将自定义软件包源添加到Visual Studio代码
E.g.我想添加https://www.myget.org/F/aspnet-contrib/api/v3/index.json作为包源代码,并通过project.json驱动这些包。
有谁知道如何将自定义软件包源添加到Visual Studio 代码?将自定义软件包源添加到Visual Studio代码
E.g.我想添加https://www.myget.org/F/aspnet-contrib/api/v3/index.json作为包源代码,并通过project.json驱动这些包。
要添加到答案中,在项目中添加一个nuget.config
可以解决项目问题。添加到根目录是好的。配置可能看起来像这样:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="MyGet" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" />
</packageSources>
</configuration>
您可以添加一个NuGet.config文件并在其中指定软件包源。一些参考文档:https://docs.microsoft.com/en-us/nuget/schema/nuget-config-file
嗨,这最后似乎工作。它最终在文档中描述。 [openiddict docs](https://github.com/openiddict/openiddict-core) – Tomino