-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Using nightly build feed
To access builds from master
branch, add https://nuget-feed-nightly.avaloniaui.net/v3/index.json
to your package sources:
If you are creating a nuget.config
file manually, then you can copy and paste this one:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<!-- optional -->
<clear />
<!-- optional -->
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
<!-- nightly feed -->
<add key="avalonia-nightly" value="https://nuget-feed-nightly.avaloniaui.net/v3/index.json" protocolVersion="3" />
</packageSources>
</configuration>
Or, you can use RestoreSources
from PropertyGroup
, for example, in Directory.Build.props
like this:
<Project>
<PropertyGroup>
<RestoreSources>
https://nuget-feed-nightly.avaloniaui.net/v3/index.json;
</RestoreSources>
</PropertyGroup>
</Project>
Update your package using Avalonia feed:
If you need to debug a nightly build by stepping into its source code, add https://nuget-feed-nightly.avaloniaui.net/api/download/symbols
to your IDE's symbol server settings:
Every build (even from PRs and random branches) is getting published to https://nuget-feed-all.avaloniaui.net/v3/index.json
To get the version for a particular build you need to check the build number from the build on Azure Pipelines. Then you can use this build to determine PR package version (or just see the logs on Azure).
This feed contains packages with UNTRUSTED source code (basically anyone can create a PR a trigger a build), some make sure to actually read the diff of the corresponding pull request. NuGet packages can contain malicious code even in build-time scripts.