本文整理汇总了C#中FullPath.Combine方法的典型用法代码示例。如果您正苦于以下问题:C# FullPath.Combine方法的具体用法?C# FullPath.Combine怎么用?C# FullPath.Combine使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FullPath
的用法示例。
在下文中一共展示了FullPath.Combine方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateEntries
private void CreateEntries(DirectoryEntry searchResults) {
if (!_enabled)
return;
using (new TimeElapsedLogger("Creating document tracking entries for search results")) {
_searchResults.Clear();
foreach (DirectoryEntry projectRoot in searchResults.Entries) {
var rootPath = new FullPath(projectRoot.Name);
foreach (FileEntry fileEntry in projectRoot.Entries) {
var path = rootPath.Combine(new RelativePath(fileEntry.Name));
var spans = fileEntry.Data as FilePositionsData;
if (spans != null) {
_searchResults[path] = spans;
// If the document is open, create the tracking spans now.
var document = _textDocumentTable.GetOpenDocument(path);
if (document != null) {
var entry = new DocumentChangeTrackingEntry(spans);
_trackingEntries[path] = entry;
entry.CreateTrackingSpans(document.TextBuffer);
}
}
}
}
}
}
示例2: GetCandidateProcessPaths
private IEnumerable<FullPath> GetCandidateProcessPaths() {
var folder = new FullPath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));
yield return folder.Combine(new RelativePath(ProxyServerName));
var serverFolder = folder.Parent.Parent;
yield return serverFolder.Combine(new RelativePath("bin\\Debug")).Combine(new RelativePath(ServerName));
yield return serverFolder.Combine(new RelativePath("bin\\Release")).Combine(new RelativePath(ServerName));
}
示例3: ContainsProjectFile
public bool ContainsProjectFile(FullPath path)
{
return _fileSystem.FileExists(path.Combine(new RelativePath(ConfigurationFilenames.ProjectFileNameDetection)));
}
示例4: CreateProject
private Project CreateProject(FullPath rootPath)
{
var fileWithSections = new FileWithSections(_fileSystem, rootPath.Combine(new RelativePath(ConfigurationFilenames.ProjectFileNameDetection)));
var configurationProvider = new FileWithSectionConfigurationProvider(fileWithSections);
return new Project(configurationProvider, rootPath);
}
示例5: CreateProject
/// <summary>
/// Create a project instance corresponding to the vschromium project file
/// on disk at <paramref name="rootPath"/>.
/// Return <code>null</code> if there is no project file.
/// </summary>
private Project CreateProject(FullPath rootPath) {
var projectFilePath = rootPath.Combine(new RelativePath(ConfigurationFileNames.ProjectFileName));
var sectionName = ConfigurationSectionNames.SourceExplorerIgnore;
if (!_fileSystem.FileExists(projectFilePath)) {
projectFilePath = rootPath.Combine(new RelativePath(ConfigurationFileNames.ProjectFileNameObsolete));
sectionName = ConfigurationSectionNames.SourceExplorerIgnoreObsolete;
if (!_fileSystem.FileExists(projectFilePath)) {
return null;
}
}
var fileWithSections = new FileWithSections(_fileSystem, projectFilePath);
var configurationProvider = new FileWithSectionConfigurationProvider(fileWithSections);
var s1 = ConfigurationSectionContents.Create(configurationProvider, sectionName);
var s2 = ConfigurationSectionContents.Create(configurationProvider, ConfigurationSectionNames.SearchableFilesIgnore);
var s3 = ConfigurationSectionContents.Create(configurationProvider, ConfigurationSectionNames.SearchableFilesInclude);
var fileFilter = new FileFilter(s1);
var directoryFilter = new DirectoryFilter(s1);
var searchableFilesFilter = new SearchableFilesFilter(s2, s3);
return new Project(rootPath, fileFilter, directoryFilter, searchableFilesFilter, fileWithSections.Hash);
}