Skip to content

Commit 8c4e07d

Browse files
committed
chore: Configure NuGet to avoid additional package sources
1 parent ff450c4 commit 8c4e07d

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<Project>
22
<!--
33
- This file is present to avoid using the generator's
4-
- Directory.Build.props when building the generated test projects.
4+
- Directory.Build.props when building the generated test projects,
5+
- and to avoid using centralized package versions.
56
-->
7+
<PropertyGroup>
8+
<ManagePackageVersionsCentrally>false</ManagePackageVersionsCentrally>
9+
</PropertyGroup>
610
</Project>

nuget.config

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
6+
</packageSources>
7+
8+
<packageSourceMapping>
9+
<packageSource key="nuget.org">
10+
<package pattern="*" />
11+
</packageSource>
12+
</packageSourceMapping>
13+
</configuration>

0 commit comments

Comments
 (0)