コード例 #1
0
 // Add a range of reference files by full path
 public static void AddReferencesByFullPath(string[] refAsms)
 {
     foreach (string asm in refAsms)
     {
         ReferenceAssemblies.Add(asm);
     }
 }
コード例 #2
0
 // 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);
         }
     }
 }