Esempio n. 1
0
        private void Fix(BuildData buildInfo, List <Module> modules, HashSet <string> processedFiles)
        {
            if (buildInfo.Target.IsFakeTarget())
            {
                throw new TargetNotFoundException(rootModuleName);
            }

            var vsParser = new VisualStudioProjectParser(buildInfo.Target, modules);

            foreach (var file in vsParser.GetCsprojList(buildInfo))
            {
                if (processedFiles.Contains(file))
                {
                    continue;
                }
                processedFiles.Add(file);
                fixReferenceResult.NotFound[file] = new List <string>();
                fixReferenceResult.Replaced[file] = new List <string>();
                var refs = vsParser.GetReferencesFromCsproj(file, buildInfo.Configuration, fixExternal);
                foreach (var r in refs)
                {
                    Fix(file, r);
                }
            }
        }
Esempio n. 2
0
        private void Fix(BuildData buildInfo, List <Module> modules, HashSet <string> processedFiles)
        {
            if (buildInfo.Target == "None")
            {
                throw new CementException("Build target is not specified in module.yaml");
            }

            var vsParser = new VisualStudioProjectParser(buildInfo.Target, modules);

            foreach (var file in vsParser.GetCsprojList(buildInfo.Configuration))
            {
                if (processedFiles.Contains(file))
                {
                    continue;
                }
                processedFiles.Add(file);
                fixReferenceResult.NotFound[file] = new List <string>();
                fixReferenceResult.Replaced[file] = new List <string>();
                var refs = vsParser.GetReferencesFromCsproj(file, fixExternal);
                foreach (var r in refs)
                {
                    Fix(file, r);
                }
            }
        }