public AssemblyUpdaterCheckAssemblyPublishConfigsTask(AssemblyUpdateCandidate a) : base(a)
 {
     Arguments = APIUpdaterAssemblyHelper.ArgumentsForCheckingForUpdaterConfigsOn(a.Path);
 }
 public AssemblyUpdaterUpdateTask(AssemblyUpdateCandidate a) : base(a)
 {
     OutputPath = Path.GetTempFileName();
     Arguments  = APIUpdaterAssemblyHelper.ArgumentsForUpdateAssembly(a.Path, OutputPath, a.UpdateConfigSources);
 }
        public AssemblyUpdaterTask(AssemblyUpdateCandidate a)
        {
            _candidate = a;

            Event = new ManualResetEvent(false);
        }
        private static bool IsAssemblyInPackageOrExtensionFolder(AssemblyUpdateCandidate candidate)
        {
            var isUnityExtension = candidate.Path.IsUnityExtension();

            return(isUnityExtension || candidate.Path.IsInPackage());
        }
        private static void AddDependentAssembliesToUpdateList(HashSet <AssemblyUpdateCandidate> assembliesToUpdate, AssemblyDependencyGraph depGraph, AssemblyUpdateCandidate imported)
        {
            var dependents         = depGraph.GetDependentsOf(imported.Name);
            var candidatesToUpdate = dependents.Select(assemblyName => CandidateForUpdatingFrom(assemblyName, depGraph));

            foreach (var candidate in candidatesToUpdate.Where(c => c != null))
            {
                assembliesToUpdate.Add(candidate);
            }
        }
示例#6
0
 private static bool IsAssemblyInPackageFolder(AssemblyUpdateCandidate candidate)
 {
     return(candidate.Path.IsInPackage());
 }