27 references to FilePath
Microsoft.CodeAnalysis.Workspaces.MSBuild (4)
MSBuild\MSBuildProjectLoader.Worker.cs (4)
484
if (doc.
FilePath
is null)
487
if (paths.Contains(doc.
FilePath
))
489
var message = string.Format(WorkspacesResources.Duplicate_source_file_0_in_project_1, doc.
FilePath
, projectFilePath);
495
paths.Add(doc.
FilePath
);
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Workspaces\TestWorkspace`1.cs (2)
398
info.Id, info.
FilePath
, info.Folders, ExportProvider,
446
var 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)
140
Assert.Equal(Path.Combine(@"C:\ProjectDirectory", ".editorconfig"), document.
FilePath
);
SolutionTests\DocumentInfoTests.cs (1)
97
Assert.Equal(path, info.
FilePath
);
SolutionTests\SolutionTests.cs (6)
1234
Assert.Equal(newDocumentInfo1.
FilePath
, newDocument1.FilePath);
1243
Assert.Equal(newDocumentInfo3.
FilePath
, newDocument3.FilePath);
1255
Assert.Equal(newAddDocumentInfo1.
FilePath
, newAddDocument1.FilePath);
1264
Assert.Equal(newAddDocumentInfo3.
FilePath
, newAddDocument3.FilePath);
1276
Assert.Equal(newConfigDocumentInfo1.
FilePath
, newConfigDocument1.FilePath);
1285
Assert.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)
786
AddDocumentToFolder(project, info.Id, [AppCodeFolderName], info.Name, documentKind, initialText, info.
FilePath
);
790
AddDocumentToFolder(project, info.Id, folders, info.Name, documentKind, initialText, info.
FilePath
);
794
AddDocumentToProject(project, info.Id, info.Name, documentKind, initialText, info.
FilePath
);
915
if (CurrentSolution.FilePath is null || documentInfo.
FilePath
is null)
918
if (PathUtilities.GetFileName(documentInfo.
FilePath
) != ".editorconfig")
921
if (IOUtilities.PerformIO(() => File.Exists(documentInfo.
FilePath
)))
925
if (solutionDirectory != PathUtilities.GetDirectoryName(documentInfo.
FilePath
))
948
using var writer = new StreamWriter(documentInfo.
FilePath
, append: false, encoding: text.Encoding ?? Encoding.UTF8);
965
documentInfo.
FilePath
,
1288
if (document.FilePath != updatedInfo.
FilePath
)