Replies: 1 comment 1 reply
-
It will return directly referenced assemblies, not packages. A package can contain multiple or no assemblies. A transitive package can be referenced directly in assembly if API from it is directly used. A directly referenced package won't be present if nothing from it is used.
The answer is: whether types from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the MS learning document :
https://learn.microsoft.com/en-us/dotnet/api/system.reflection.assembly.getreferencedassemblies?view=net-8.0&devlangs=csharp&f1url=%3FappId%3DDev17IDEF1%26l%3DEN-US%26k%3Dk(System.Reflection.Assembly.GetReferencedAssemblies)%3Bk(SolutionItemsProject)%3Bk(SolutionItemsProject)%3Bk(DevLang-csharp)%26rd%3Dtrue
Descripted as 'Gets the AssemblyName objects for all the assemblies referenced by this assembly.' means only got the directly referenced assemblies or all sub referenced assemblies?
For example,a project using Microsoft.EntityFrameworkCore.SqlServer. can call GetReferencedAssemblies only once to get assembly Microsoft.IdentityModel.Abstractions?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions