نشانیها
- فید NuGet (V3)
https://mirror-nuget.pkg.shecan.ir/v3/index.json
فقط برای یک پروژه (پیشنهادی)
این فایل را کنار فایل .sln یا .csproj بگذارید. <clear /> باعث میشود فقط میرور استفاده شود.
nuget.confignuget.configXML
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="shecan" value="https://mirror-nuget.pkg.shecan.ir/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>تنظیم دائمی برای کاربر فعلی
Shell
dotnet nuget add source https://mirror-nuget.pkg.shecan.ir/v3/index.json -n shecan
dotnet nuget disable source nuget.orgShell
dotnet nuget enable source nuget.org
dotnet nuget remove source shecanاستفادهٔ موقت، فقط برای یک دستور
Shell
dotnet add package Newtonsoft.Json -s https://mirror-nuget.pkg.shecan.ir/v3/index.jsonنکتهها و محدودیتها
- فقط دریافت پشتیبانی میشود؛
dotnet nuget pushکار نمیکند. - در Visual Studio از Tools → Options → NuGet Package Manager → Package Sources همین نشانی را اضافه کنید و nuget.org را غیرفعال کنید.