public AssetDependenciesCompiler(Type compilationContext) { if (!typeof(ICompilationContext).IsAssignableFrom(compilationContext)) { throw new InvalidOperationException($"{nameof(compilationContext)} should inherit from ICompilationContext"); } BuildDependencyManager = new BuildDependencyManager(); }
/// <summary> /// Initializes a new instance. /// </summary> /// <param name="package">The start package.</param> /// <param name="extraRoots">The extra roots that needs to be collected with their dependencies.</param> public RootPackageAssetEnumerator(Package package) { rootPackage = package; buildDependencyManager = new BuildDependencyManager(); }