Exemplo n.º 1
0
        public AssemblyWithSourceInfo(Type sampleType, params SourceCodePathAndMarkerFileName[] sourceInfoList)
        {
            this.Assembly = sampleType.Assembly;

            List <DirectoryPath> srcRootList = new List <DirectoryPath>();

            foreach (SourceCodePathAndMarkerFileName srcInfo in sourceInfoList)
            {
                try
                {
                    DirectoryPath?root = Lfs.DetermineRootPathWithMarkerFile(srcInfo.SourceCodePath, srcInfo.MarkerFileName);
                    if (root != null)
                    {
                        srcRootList.Add(root);
                    }
                }
                catch { }
            }

            this.SourceRootList = srcRootList;
        }