Files
coverlet/Documentation/ConsumeNightlyBuild.md
T
Toni Solarin-Sodara fcb2ec039f Publish nightly packages to Azure DevOps (#1020)
* Update nightly build definitions

* Update nightly package feed name

* Update feed information

* Use scoped name in publishVstsFeed argument

* Remove nightly.ps1

* Update nightly documentation

* ADO doesn't let us check package metadata
2020-12-18 05:53:18 +01:00

1.3 KiB

Consume nightly build

To consume nightly builds, create a NuGet.Config in your root solution directory and add the following content:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <!-- Coverlet nightly build feed -->
    <add key="coverletNightly" value="https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json" /> 
    <!-- Default nuget feed -->
    <add key="nuget" value="https://api.nuget.org/v3/index.json" /> 
    <!-- Add all other needed feed -->
  </packageSources>
</configuration>

Install packages

Visual Studio:

File

NuGet (Package Manager console):

PM> Install-Package coverlet.msbuild -Version 3.0.0-preview.18.g183cbed8a6 -Source https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json

.NET CLI:

 dotnet add package coverlet.msbuild --version 3.0.0-preview.18.g183cbed8a6 --source https://pkgs.dev.azure.com/tonerdo/coverlet/_packaging/coverlet-nightly/nuget/v3/index.json

MSBuild project file:

<PackageReference Include="coverlet.msbuild" Version="3.0.0-preview.18.g183cbed8a6" />

Note: The version provided here is just an example, you should use the latest when possible