Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1009 Bytes

File metadata and controls

35 lines (25 loc) · 1009 Bytes

Restore NuGet Packages from Private Feed

Overview

You can restore the NuGet packages from a temporary private feed by following the steps below.

1. Add NuGet Source

Create a nuget.config file in your project root with the following content.

<configuration>
    <packageSources>
        <!-- To inherit the global NuGet package sources, remove the <clear/> line below -->
        <clear />
        <add key="nuget" value="https://api.nuget.org/v3/index.json" />
        <!-- Add the following line -->
        <add key="otel-early-access" value="http://172.179.151.190:5000/v3/index.json" /> 
    </packageSources>
</configuration>

Alternatively, you can add the source using the .NET CLI:

dotnet nuget add source http://172.179.151.190:5000/v3/index.json

2. Add NuGet Package

To add the Azure.Monitor.OpenTelemetry.Profiler.AspNetCore package, run the following command:

dotnet add package Azure.Monitor.OpenTelemetry.Profiler.AspNetCore --prerelease