Set up NuGet to use your internal registry
Set up NuGet so that .NET workspaces can restore packages from your internal NuGet feed. .Prerequisites
About this task
- You are not running any NuGet workspace.
Warning:
Applying a ConfigMap that sets environment variables might cause a workspace boot loop.
If you encounter this behavior, remove the
ConfigMapand edit the devfile directly.
Procedure
Results
- Open a terminal in your workspace.
- Verify the NuGet source configuration:
$ dotnet nuget list sourceThe output includes the artifact repository URL from your
nuget.configConfigMap. - Restore packages to verify artifact resolution from the mirror:
$ dotnet restore