File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Generate stubs
2
+
3
+ Stubs can be generated from Nuget packages with the ` make_stubs_nuget.py ` script.
4
+
5
+ The following calls generate stubs for ` Newtonsoft.Json ` :
6
+
7
+ ```
8
+ python make_stubs_nuget.py Newtonsoft.Json
9
+ python make_stubs_nuget.py Newtonsoft.Json latest
10
+ python make_stubs_nuget.py Newtonsoft.Json 13.0.1
11
+ python make_stubs_nuget.py Newtonsoft.Json 13.0.1 /Users/tmp/working-dir
12
+ ```
13
+
14
+ The output stubs are found in the ` [DIR]/output/stubs ` folder and can be copied over to ` csharp/ql/test/resources/stubs ` .
15
+
16
+ In some more involved cases the output files need to be edited. For example ` ServiceStack ` has Nuget dependencies, which
17
+ are included in the ` Microsoft.NETCore.App ` framework stub. These dependencies generate empty packages, which can be
18
+ removed. The ` ProjectReference ` entries referencing these removed empty packages also need to be deleted from the
19
+ ` .csproj ` files.
You can’t perform that action at this time.
0 commit comments