How to configure Nuget.config file to use Теlerik Nuget Server within Xamarin app
Environment
Product Version | 2019.2.603.1 |
Product | Telerik UI for Xamarin |
Description
Telerik UI for Xamarin Nuget package is hosted on a private server, it is not published in the official NuGet storage. So, when you're building a Xamarin.Forms application with our Xamarin nuget package in AppCenter, you would need to provide the credentials to the Telerik Nuget Server (they are the same as in your Telerik account) inside a Nuget.config file.
Solution
You could check how to setup the Nuget.config file in the MSDN topic below: https://docs.microsoft.com/en-us/nuget/reference/nuget-config-file#package-source-sections
The tricky part is that you'd need to use ClearTextPassword field for the credentials.
Here is an example with setting up Telerik Nuget Server in Nuget.config:
<packageSources>
<add key="NuGet" value="https://api.nuget.org/v3/index.json" />
<add key="Telerik" value="https://nuget.telerik.com/nuget" />
</packageSources>
<packageSourceCredentials>
<Telerik>
<add key="Username" value="%TELERIK_USERNAME%" />
<add key="ClearTextPassword" value="%TELERIK_PASSWORD%" />
</Telerik>
</packageSourceCredentials>