有誰知道如何將自定義軟件包源添加到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