// Add a range of reference files by full path public static void AddReferencesByFullPath(string[] refAsms) { foreach (string asm in refAsms) { ReferenceAssemblies.Add(asm); } }
// Add a range of reference files by assembly name only public static void AddReferencesByAssemblyName(string[] refAsms) { foreach (string asm in refAsms) { if (FindReferenceAssemblyPath(asm, out string asmFullPath)) { ReferenceAssemblies.Add(asmFullPath); } } }