As per here: GetReferencedAssemblies doesn't return all assemblies, the C# compiler will remove any project references which it judges to be unused. I\'ve confirmed this