Exemple #1
0
 private void ResolveAssemblies()
 {
     foreach (string assemblyFile in ReferencedAssemblies)
     {
         IUnresolvedAssembly assembly = ((Solution)Solution).LoadAssembly(assemblyFile);
         ProjectContent = ProjectContent.AddAssemblyReferences(new[] { assembly });
         ResolvedReferencedAssemblies.Add(assembly);
     }
 }
Exemple #2
0
 public void AddReference(string reference)
 {
     try
     {
         References.Add(LoadAssembly(reference));
         ProjectContent = ProjectContent.AddAssemblyReferences(References);
     }
     catch (BadImageFormatException)
     {
         // Ignore native dlls
         _logger.Error(reference + " is a native dll");
     }
 }
Exemple #3
0
 public void AddReference(IAssemblyReference reference)
 {
     References.Add(reference);
     ProjectContent.AddAssemblyReferences(new[] { reference });
 }
Exemple #4
0
 public void AddReference(IAssemblyReference reference)
 {
     References.Add(reference);
     ProjectContent = ProjectContent.AddAssemblyReferences(References);
 }
Exemple #5
0
 public void AddReference(string reference)
 {
     References.Add(LoadAssembly(reference));
     ProjectContent = ProjectContent.AddAssemblyReferences(References);
 }