0

I have a reference to a project here named SocialMedia.Infrastructure which in turn is depended on SocialMedia.Core. When running a command to get referenced assemblies like this

Assembly.GetExecutingAssembly().GetReferencedAssemblies()

It's unable to detected the assembly for SocialMedia.Infrastructure but it is detecting SocialMedia.Core any reasons to why this is happening?

Here is any image which should clarify things

Thanks in advance!

Roman
  • 11,966
  • 10
  • 38
  • 47
  • Unless I'm mistaken, I think it only shows them if they've been used. – ProgrammingLlama Jun 13 '22 at 14:33
  • You are right, I tried using Infrastructure and it popped up. Any way I can tell it to always include the assembly? – Waad Sulaiman Jun 13 '22 at 14:38
  • I tried to do it one time but I don't think I ever found a good way. There are some options [here](https://stackoverflow.com/questions/2384592/is-there-a-way-to-force-all-referenced-assemblies-to-be-loaded-into-the-app-doma) – ProgrammingLlama Jun 13 '22 at 14:40

0 Answers0