示例#1
0
        public NPath ReferenceSourcesFilePathFor(NPath classLibraryAssemblyDirectory, string profileName)
        {
            var classLibNameForSourcesFile = SourcesUtils.ClassLibSourcesFileNameOnDiskFromParentDirectory(classLibraryAssemblyDirectory);
            var normalNamingScheme         = $"{profileName}_{classLibNameForSourcesFile}.dll.sources";

            var normalNamingPath = classLibraryAssemblyDirectory.Combine(normalNamingScheme);

            if (normalNamingPath.FileExists())
            {
                return(normalNamingPath);
            }

            var alternateNamingPath = classLibraryAssemblyDirectory.Combine($"{classLibNameForSourcesFile}.dll.sources");

            if (alternateNamingPath.FileExists())
            {
                return(alternateNamingPath);
            }

            return(normalNamingPath);
        }
示例#2
0
        public NPath OutputProfileSourcesFilePathFor(NPath classLibraryAssemblyDirectory, string profileName)
        {
            var classLibNameForSourcesFile = SourcesUtils.ClassLibSourcesFileNameOnDiskFromParentDirectory(classLibraryAssemblyDirectory);

            return(classLibraryAssemblyDirectory.Combine($"{profileName}_{classLibNameForSourcesFile}.dll.sources"));
        }