示例#1
0
        internal bool UpdateSimilarArtifactsFromHead(IActivityMonitor monitor)
        {
            Debug.Assert(!IsUnifiedPure);
            bool source  = _saveSource == SaveSourceLevel.SaveSource && GeneratedSource.Exists();
            bool compile = CompileOption == CompileOption.Compile && GeneratedAssembly.Exists();

            if (!source && !compile)
            {
                return(true);
            }

            foreach (var b in SimilarConfigurations.Skip(1))
            {
                if (source && b.GenerateSourceFiles)
                {
                    if (!Update(monitor, GeneratedSource.Path, CreateG0(b)))
                    {
                        return(false);
                    }
                }
                if (compile && b.CompileOption == CompileOption.Compile)
                {
                    if (!Update(monitor, GeneratedSource.Path, CreateAssembly(b)))
                    {
                        return(false);
                    }
                }
            }
            return(true);
        }