Exemple #1
0
 public Project(ProjectModuleOptions options, string projDir, SatelliteAssemblyFinder satelliteAssemblyFinder, Func <TextWriter, IDecompilerOutput> createDecompilerOutput)
 {
     Options   = options ?? throw new ArgumentNullException(nameof(options));
     Directory = projDir;
     this.satelliteAssemblyFinder = satelliteAssemblyFinder;
     this.createDecompilerOutput  = createDecompilerOutput;
     Files                   = new List <ProjectFile>();
     DefaultNamespace        = new DefaultNamespaceFinder(options.Module).Find();
     Filename                = Path.Combine(projDir, Path.GetFileName(projDir) + options.Decompiler.ProjectFileExtension);
     AssemblyName            = options.Module.Assembly is null ? string.Empty : options.Module.Assembly.Name.String;
     ProjectTypeGuids        = new HashSet <Guid>();
     PropertiesFolder        = CalculatePropertiesFolder();
     ExtraAssemblyReferences = new HashSet <string>();
     LanguageGuid            = CalculateLanguageGuid(options.Decompiler);
 }
Exemple #2
0
		public Project(ProjectModuleOptions options, string projDir, SatelliteAssemblyFinder satelliteAssemblyFinder, Func<TextWriter, IDecompilerOutput> createDecompilerOutput) {
			if (options == null)
				throw new ArgumentNullException(nameof(options));
			Options = options;
			Directory = projDir;
			this.satelliteAssemblyFinder = satelliteAssemblyFinder;
			this.createDecompilerOutput = createDecompilerOutput;
			Files = new List<ProjectFile>();
			DefaultNamespace = new DefaultNamespaceFinder(options.Module).Find();
			Filename = Path.Combine(projDir, Path.GetFileName(projDir) + options.Decompiler.ProjectFileExtension);
			AssemblyName = options.Module.Assembly == null ? string.Empty : options.Module.Assembly.Name.String;
			ProjectTypeGuids = new HashSet<Guid>();
			PropertiesFolder = CalculatePropertiesFolder();
			ExtraAssemblyReferences = new HashSet<string>();
			LanguageGuid = CalculateLanguageGuid(options.Decompiler);
		}