Skip to content

Commit b94dd82

Browse files
authored
chore(common): update package source mapping (#2577)
1 parent b6fde52 commit b94dd82

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

installation/nuget.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ To edit a `NuGet.Config` file and add the Telerik feed, you need to:
114114
<packageSources>
115115
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
116116
<clear />
117-
<add key="nuget" value="https://api.nuget.org/v3/index.json" />
117+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
118118
<add key="TelerikOnlineFeed" value="https://nuget.telerik.com/v3/index.json" />
119119
</packageSources>
120120
<packageSourceCredentials>
@@ -142,28 +142,36 @@ You can [generate your Telerik NuGet API Key on telerik.com](https://www.telerik
142142
143143
The `Telerik.UI.for.Blazor` NuGet package and most of its dependencies reside on `nuget.telerik.com`. On the other hand, the [Telerik icon packages]({%slug common-features-icons%}) reside on `nuget.org`. The correct [package source mapping](https://learn.microsoft.com/en-us/nuget/consume-packages/package-source-mapping) configuration should be similar to:
144144
145+
> Make sure that the `key` values in the `packageSourceMapping` section match the `key` values in the `packageSources` section, otherwise you will get a "Package not found" error.
146+
145147
>caption packageSourceMapping configuration for Telerik UI for Blazor and other Telerik Packages
146148
147149
<div class="skip-repl"></div>
148150
149151
````CSHTML
150-
<packageSourceMapping>
151-
<packageSource key="nuget.org">
152-
<package pattern="*" />
153-
<package pattern="Telerik.FontIcons" />
154-
<package pattern="Telerik.SvgIcons" />
155-
</packageSource>
156-
<packageSource key="TelerikOnlineFeed">
157-
<package pattern="Telerik*" />
158-
<package pattern="Kendo*" />
159-
<package pattern="UI.for*" />
160-
<package pattern="JustMock*" />
161-
</packageSource>
162-
</packageSourceMapping>
152+
<?xml version="1.0" encoding="utf-8" ?>
153+
<configuration>
154+
<packageSources>
155+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
156+
<add key="TelerikOnlineFeed" value="https://nuget.telerik.com/v3/index.json" />
157+
</packageSources>
158+
159+
<packageSourceMapping>
160+
<packageSource key="nuget.org">
161+
<package pattern="*" />
162+
<package pattern="Telerik.FontIcons" />
163+
<package pattern="Telerik.SvgIcons" />
164+
</packageSource>
165+
<packageSource key="TelerikOnlineFeed">
166+
<package pattern="Telerik*" />
167+
<package pattern="Kendo*" />
168+
<package pattern="UI.for*" />
169+
<package pattern="JustMock*" />
170+
</packageSource>
171+
</packageSourceMapping>
172+
</configuration>
163173
````
164174

165-
> Make sure that the `key` values in the `packageSourceMapping` section match the `key` values in the `packageSources` section, otherwise you will get a "Package not found" error.
166-
167175

168176
## Access NuGet Packages behind Firewall
169177

0 commit comments

Comments
 (0)