27 references to FilePath
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
484if (doc.FilePath is null) 487if (paths.Contains(doc.FilePath)) 489var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.FilePath, projectFilePath); 495paths.Add(doc.FilePath);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
398info.Id, info.FilePath, info.Folders, ExportProvider, 446var hostDocument = CreateDocument(text.ToString(), info.Name, id: info.Id, filePath: info.FilePath, folders: info.Folders, exportProvider: ExportProvider);
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
CommandLineProject\CommandLineProjectTests.cs (1)
140Assert.Equal(Path.Combine(@"C:\ProjectDirectory", ".editorconfig"), document.FilePath);
SolutionTests\DocumentInfoTests.cs (1)
97Assert.Equal(path, info.FilePath);
SolutionTests\SolutionTests.cs (6)
1234Assert.Equal(newDocumentInfo1.FilePath, newDocument1.FilePath); 1243Assert.Equal(newDocumentInfo3.FilePath, newDocument3.FilePath); 1255Assert.Equal(newAddDocumentInfo1.FilePath, newAddDocument1.FilePath); 1264Assert.Equal(newAddDocumentInfo3.FilePath, newAddDocument3.FilePath); 1276Assert.Equal(newConfigDocumentInfo1.FilePath, newConfigDocument1.FilePath); 1285Assert.Equal(newConfigDocumentInfo3.FilePath, newConfigDocument3.FilePath);
Microsoft.VisualStudio.LanguageServices (13)
ProjectSystem\VisualStudioWorkspaceImpl.AddAdditionalDocumentUndoUnit.cs (1)
24=> fromProject.AddAdditionalDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddAnalyzerConfigDocumentUndoUnit.cs (1)
23=> fromProject.AddAnalyzerConfigDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.AddDocumentUndoUnit.cs (1)
23=> fromProject.AddDocument(DocumentInfo.Name, Text, DocumentInfo.Folders, DocumentInfo.FilePath).Project;
ProjectSystem\VisualStudioWorkspaceImpl.cs (10)
786AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.Name, documentKind, initialText, info.FilePath); 790AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.FilePath); 794AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.FilePath); 915if (CurrentSolution.FilePath is null || documentInfo.FilePath is null) 918if (PathUtilities.GetFileName(documentInfo.FilePath) != ".editorconfig") 921if (IOUtilities.PerformIO(() => File.Exists(documentInfo.FilePath))) 925if (solutionDirectory != PathUtilities.GetDirectoryName(documentInfo.FilePath)) 948using var writer = new StreamWriter(documentInfo.FilePath, append: false, encoding: text.Encoding ?? Encoding.UTF8); 965documentInfo.FilePath, 1288if (document.FilePath != updatedInfo.FilePath)