public override bool Execute()
        {
            using var fileStream = File.Create(RootDescriptorFilePath.ItemSpec);
            var assemblyNames = AssemblyNames.Select(a => a.ItemSpec);

            WriteRootDescriptor(fileStream, assemblyNames);
            return(true);
        }
Esempio n. 2
0
 /// <summary>
 /// Adds specificly configured assemblies.
 /// </summary>
 /// <param name="addedAssemblyNames">The added assembly names.</param>
 /// <param name="assemblies">The assemblies.</param>
 protected virtual void AddConfiguredAssemblies(List <string> addedAssemblyNames, List <Assembly> assemblies)
 {
     foreach (Assembly assembly in AssemblyNames.Select(Assembly.Load).Where(assembly => !addedAssemblyNames.Contains(assembly.FullName)))
     {
         assemblies.Add(assembly);
         addedAssemblyNames.Add(assembly.FullName);
     }
 }