1. 程式人生 > 其它 >配置Orchard Core 最新的包資源

配置Orchard Core 最新的包資源

新增預覽包源

在本文中,我們將新增一個指向預覽包的新包源。

與從主分支構建的NuGet上的程式碼相比,每次在dev分支上提交一些程式碼時都會構建預覽包。

它們是最新的版本,但不是最穩定的,可以包含突破性的更改。

Orchard Core預覽源新增到Visual Studio

為了能夠使用VisualStudio中的預覽包,請開啟NuGet Package Manager下的“工具”選單→ 包管理器設定。預覽包資源地址url為https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json

使用NuGet.config新增Orchard Core

預覽源

您還可以使用NuGet.config檔案新增包源:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
    <add key="OrchardCorePreview" value="https://nuget.cloudsmith.io/orchardcore/preview/v3/index.json"
/> </packageSources> <disabledPackageSources /> </configuration>