Forum Discussion
ricassky12
Jul 09, 2024Copper Contributor
cannot restore nuget telerik packages with linux server but works fine with windows server
any help?
- chamindacBrass Contributor
ricassky12 using below nuget.config makes it work for both Windows and Linux. Replace %telerik_api_key% with your telerik api key.
<?xml version="1.0" encoding="utf-8"?> <configuration> <packageRestore> <!-- Allow NuGet to download missing packages --> <add key="enabled" value="True" /> <!-- Automatically check for missing packages during build in Visual Studio --> <add key="automatic" value="True" /> </packageRestore> <packageSources> <clear /> <add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" /> <add key="telerik" value="https://nuget.telerik.com/v3/index.json" /> </packageSources> <activePackageSource> <!-- All non-disabled sources are active --> <add key="All" value="(Aggregate source)" /> </activePackageSource> <packageSourceCredentials> <telerik> <add key="Username" value="api-key" /> <add key="ClearTextPassword" value="%telerik_api_key%" /> </telerik> </packageSourceCredentials> </configuration>
.