You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: csharp/scripts/stubs/README.md
+15-2Lines changed: 15 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Generate stubs
1
+
# Generate stubs for a single NuGet package
2
2
3
3
Stubs can be generated from Nuget packages with the `make_stubs_nuget.py` script.
4
4
@@ -16,4 +16,17 @@ The output stubs are found in the `[DIR]/output/stubs` folder and can be copied
16
16
In some more involved cases the output files need to be edited. For example `ServiceStack` has Nuget dependencies, which
17
17
are included in the `Microsoft.NETCore.App` framework stub. These dependencies generate empty packages, which can be
18
18
removed. The `ProjectReference` entries referencing these removed empty packages also need to be deleted from the
19
-
`.csproj` files.
19
+
`.csproj` files.
20
+
21
+
# Generate stubs for all packages needed for tests.
22
+
23
+
Stubs needed for all C# Code QL tests can be generated by
24
+
```
25
+
python3 make_stubs_all.py
26
+
python3 make_stubs_all.py /Users/tmp/working-dir
27
+
```
28
+
The script contains a hardcoded list of `packages`. If a new package is needed for test purposes, it should be added to the `packages` list in the script.
29
+
30
+
The generated stubs require some manual changes before they are compilable.
31
+
32
+
The output stubs are found in the `[DIR]/output/stubs` folder and can be copied over to `csharp/ql/test/resources/stubs`.
0 commit comments