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
{{ message }}
Repository navigation
Commit 32120bb
Browse filesBrowse the repository at this point in the historyBrowse files
C#: Reference superseding frameworks in stub projects
The dependency manager keeps only the highest version of each assembly, so
package assemblies superseded by a framework are stubbed in the framework.
Reference that framework from the package project.
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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
29
30
-
The generated stubs require some manual changes before they are compilable.
30
+
The generated `.csproj` files reference the dependency versions that were actually restored. They also reference any framework whose stubs contain types from a package. This happens when a framework supersedes the package's assemblies, as `Microsoft.AspNetCore.App` does for `Microsoft.Extensions.*`. The generated stubs might still require some manual changes before they are compilable.
31
31
32
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