Last active
July 31, 2024 09:28
-
-
Save Red-Folder/34056d8115eb839f27b427a06cdea313 to your computer and use it in GitHub Desktop.
Sample nuget.config to show how to add personal nuget server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<packageSources> | |
<add key="NAME" value="FEEDURL" /> | |
<add key="NuGet official package source" value="https://nuget.org/api/v2/" /> | |
</packageSources> | |
<activePackageSource> | |
<add key="All" value="(Aggregate source)" /> | |
</activePackageSource> | |
</configuration> |
Thanks 😃
how about credentials??
This is how you add credentials to the nuget.config for private registry name example-nuget
hosted in bytesafe.dev
:
<?xml version="1.0" encoding="utf-8"?>
</configuration>
<packageSources>
<clear />
<add key="example-nuget" value="https://test.bytesafe.dev/nuget/example-nuget/index.json" />
</packageSources>
<packageSourceCredentials>
<example-nuget>
<add key="Username" value="bytesafe" />
<add key="Password" value="xxyyzzzz" />
</example-nuget>
</packageSourceCredentials>
<apikeys>
<add key="https://test.bytesafe.dev/nuget/example-nuget/index.json" value="xxyyzzzz" />
</apikeys>
<disabledPackageSources>
<add key="nuget.org" value="true" />
</disabledPackageSources>
</configuration>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excelent !