Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit 99e6acf

Browse files
committed
Add nuget.config docs
1 parent 7b0cb1c commit 99e6acf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,18 @@ so that the MSBuild Task can invoke the `dotnet codegen` command line tool:
207207
</ItemGroup>
208208
```
209209

210+
Also, any consumer must have a nuget.config file with at least this content:
211+
212+
```xml
213+
<?xml version="1.0" encoding="utf-8"?>
214+
<configuration>
215+
<packageSources>
216+
<add key="api.nuget.org" value="https://api.nuget.org/v3/index.json" />
217+
<add key="corefxlab" value="https://dotnet.myget.org/F/dotnet-corefxlab/api/v3/index.json" />
218+
</packageSources>
219+
</configuration>
220+
```
221+
210222
Make sure that the DotNetCliToolReference version matches the version of the
211223
`CodeGeneration.Roslyn` package your package depends on.
212224

0 commit comments

Comments
 (0)