95 references to FilePath
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
ProjectExtensions.cs (2)
53var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath); 86var solutionOrProjectFilePath = project.Solution?.FilePath ?? project.FilePath;
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (3)
AbstractCodeActionOrUserDiagnosticTest.cs (3)
202if (!PathUtilities.IsAbsolute(project.FilePath)) 205newSolution = newSolution.WithProjectFilePath(projectId, Path.Combine(projectRootFilePath, project.FilePath)); 209projectRootFilePath = PathUtilities.GetPathRoot(project.FilePath);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.cs (1)
743project = project.Solution.WithProjectFilePath(project.Id, @$"z:\\{project.FilePath}").GetProject(project.Id);
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\Extensions\SolutionExtensions.cs (2)
44if (project.FilePath is null) 49var fileDirectoryInfo = new DirectoryInfo(project.FilePath);
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (3)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (3)
202if (!PathUtilities.IsAbsolute(project.FilePath)) 205newSolution = newSolution.WithProjectFilePath(projectId, Path.Combine(projectRootFilePath, project.FilePath)); 209projectRootFilePath = PathUtilities.GetPathRoot(project.FilePath);
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\TestWorkspace.cs (4)
400if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath) 403hostProject.OnProjectFilePathChanged(projectChanges.NewProject.FilePath); 404base.OnProjectNameChanged(projectChanges.NewProject.Id, projectChanges.NewProject.Name, projectChanges.NewProject.FilePath);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
SyncNamespaces\SyncNamespacesServiceTests.vb (3)
185Return proj.FilePath = "/Test/Test.csproj" 246Return proj.FilePath = "/Test/Test.csproj" 251Return proj.FilePath = "/Test2/Test2.csproj"
Microsoft.CodeAnalysis.ExternalAccess.FSharp (2)
LanguageServices\FSharpVisualStudioWorkspaceExtensions.cs (2)
44return workspace.CurrentSolution.Projects.FirstOrDefault(p => p.FilePath == filePath)?.Id ?? ProjectId.CreateNewId("ProjectNotFound"); 50return workspace.CurrentSolution.GetProject(projectId)?.FilePath;
Microsoft.CodeAnalysis.Features (10)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
318if (project?.FilePath?.StartsWith(analyzerConfigDirectory) == true)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (2)
45if (!string.IsNullOrEmpty(_project.FilePath)) 47var fullPath = Path.GetFullPath(_project.FilePath);
CodeRefactorings\SyncNamespace\AbstractChangeNamespaceService.cs (2)
356!PathUtilities.PathsEqual(arg.solution.GetRequiredDocument(id).Project.FilePath!, arg.document.Project.FilePath!), (solution, document)))
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
157var projectRoot = PathUtilities.GetDirectoryName(document.Project.FilePath);
EditAndContinue\TraceLog.cs (2)
152Debug.Assert(document.Project.FilePath != null); 154var projectDir = PathUtilities.GetDirectoryName(document.Project.FilePath)!;
UnusedReferences\UnusedReferencesRemover.cs (1)
34.Where(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Workspace\CompileTimeSolutionProvider.cs (1)
183var designTimeProjectDirectoryName = PathUtilities.GetDirectoryName(designTimeDocument.Project.FilePath)!;
Microsoft.CodeAnalysis.LanguageServer.Protocol (5)
Extensions\Extensions.cs (1)
115var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.Uri.LocalPath).ToImmutableArray();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (2)
200Logger.Log(FunctionId.Diagnostics_ProjectDiagnostic, p => $"FSA off ({p.FilePath ?? p.Name})", project); 302Logger.Log(FunctionId.Diagnostics_ProjectDiagnostic, p => $"Failed to Load Successfully ({p.FilePath ?? p.Name})", project);
Handler\Diagnostics\DiagnosticSources\ProjectDiagnosticSource.cs (2)
20=> !string.IsNullOrEmpty(Project.FilePath) 21? new VSTextDocumentIdentifier { ProjectContext = ProtocolConversions.ProjectToProjectContext(Project), Uri = ProtocolConversions.GetUriFromFilePath(Project.FilePath) }
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (2)
36Assert.Equal(ProtocolConversions.GetUriFromFilePath(testLspServer.GetCurrentSolution().Projects.First().FilePath!), results[1].Uri); 55Assert.Equal(ProtocolConversions.GetUriFromFilePath(testLspServer.GetCurrentSolution().Projects.First().FilePath!), results[1].Uri);
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (7)
Generator.cs (2)
105var projectPath = project.FilePath; 183throw new AggregateException($"Exceptions were thrown while processing documents in {project.FilePath}", exceptions);
Program.cs (5)
197if (project.SupportsCompilation && project.FilePath != null) 202await logFile.WriteLineAsync($"Fetch of compilation for {project.FilePath} completed in {compilationCreationStopwatch.Elapsed.ToDisplayString()}."); 210await logFile.WriteLineAsync($"Generation for {project.FilePath} completed in {generationForProjectStopwatch.Elapsed.ToDisplayString()}."); 231await logFile.WriteLineAsync($"Generation for {project.FilePath} completed in {generationStopwatch.Elapsed.ToDisplayString()}."); 260await logFile.WriteLineAsync($"Generation for {project.FilePath} completed in {generationStopwatch.Elapsed.ToDisplayString()}.");
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator.UnitTests (2)
CompilerInvocationTests.vb (2)
24Assert.Equal("Z:\Project.csproj", project.FilePath) 51Assert.Equal("Z:\Project.vbproj", project.FilePath)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
Formatting\CodeCleanUpTests.vb (1)
527project = project.Solution.WithProjectFilePath(project.Id, $"z:\\{project.FilePath}").GetProject(project.Id)
Microsoft.CodeAnalysis.Workspaces (5)
Classification\SemanticClassificationCacheUtilities.cs (1)
23var projectKey = new ProjectKey(SolutionKey.ToSolutionKey(project.Solution), project.Id, project.FilePath, project.Name, Checksum.Null);
Diagnostics\DiagnosticData.cs (1)
216location: new DiagnosticDataLocation(new FileLinePositionSpan(project?.FilePath ?? solution.FilePath ?? "", span: default)),
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
33=> "_Source_" + project.FilePath;
ProjectExtensions.cs (2)
53var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath); 86var solutionOrProjectFilePath = project.Solution?.FilePath ?? project.FilePath;
Microsoft.CodeAnalysis.Workspaces.MSBuild (7)
MSBuild\MSBuildWorkspace.cs (6)
322var projectPath = project.FilePath; 436var filePath = project?.FilePath; 587if (project?.FilePath is not null) 589_applyChangesProjectFile.AddProjectReference(project.Name, new ProjectFileReference(project.FilePath, projectReference.Aliases)); 600if (project?.FilePath is not null) 602_applyChangesProjectFile.RemoveProjectReference(project.Name, project.FilePath);
MSBuild\ProjectMap.cs (1)
78Add(project.Id, project.FilePath, project.OutputFilePath, project.OutputRefFilePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (13)
NetCoreTests.cs (9)
129Assert.Equal(libraryProject.FilePath, workspace.CurrentSolution.GetProject(projectRefId).FilePath); 175Assert.Equal(projectRefFilePath, project.Solution.GetProject(projectRefId).FilePath); 202projectPaths.Add(project.FilePath); 296projectPaths.Add(project.FilePath); 324var fileName = PathUtilities.GetFileName(project.FilePath); 339Assert.True(false, $"Encountered unexpected project: {project.FilePath}"); 352var projects = workspace.CurrentSolution.Projects.Where(p => p.FilePath.EndsWith("Project.csproj")); 495Assert.Equal(projectRefFilePath, project.Solution.GetProject(projectRefId).FilePath);
VisualStudioMSBuildWorkspaceTests.cs (4)
794var expectedOutputPath = Path.GetDirectoryName(project.FilePath); 812var expectedOutputPath = Path.Combine(Path.GetDirectoryName(project.FilePath), @"bin"); 2020var projectFileText = File.ReadAllText(project2.FilePath); 3148var project = solution.Projects.Single(p => p.FilePath.EndsWith("CSharpProject_ProjectReference.csproj"));
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SolutionTests\SolutionTests.cs (1)
1202s => s.GetRequiredProject(projectId).FilePath,
Microsoft.VisualStudio.LanguageServices (14)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
315p => p != project && p.FilePath == project.FilePath && p.State.NameAndFlavor.name == project.State.NameAndFlavor.name).ToImmutableArray();
GenerateType\GenerateTypeDialogViewModel.cs (3)
272if (!TryGetImplicitFilePath(this.SelectedProject.FilePath ?? string.Empty, ServicesVSResources.Project_Path_is_illegal, out implicitFilePath)) 314if (this.SelectedProject.FilePath == null) 318else if (!TryGetImplicitFilePath(this.SelectedProject.FilePath, ServicesVSResources.Project_Path_is_illegal, out projectRootPath))
Library\ObjectBrowser\ObjectList.cs (1)
921data.bstrFile = project.FilePath;
Progression\GraphBuilder.cs (2)
80p => string.Equals(p.FilePath, projectPath.OriginalString, StringComparison.OrdinalIgnoreCase)); 706if (document.FilePath == null || project.FilePath == null)
Progression\GraphNodeIdCreation.cs (1)
33GraphNodeId.GetPartial(CodeGraphNodeIdName.Assembly, new Uri(document.Project.FilePath, UriKind.RelativeOrAbsolute)),
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
124.Where(project => project.FilePath?.Equals(projectFilePath, StringComparison.OrdinalIgnoreCase) == true)
TableDataSource\AbstractTableEntriesSnapshot.cs (1)
192var projectDirectory = Path.GetDirectoryName(project.FilePath);
TableDataSource\VisualStudioDiagnosticListTable.BuildTableDataSource.cs (1)
257var projectDirectory = Path.GetDirectoryName(project.FilePath);
TaskList\ProjectExternalErrorReporter.cs (1)
112new FileLinePositionSpan(project.FilePath ?? "", span: default),
UnusedReferences\Dialog\UnusedReferencesTableProvider.DataSource.cs (1)
36var project = solution.Projects.First(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (2)
ProjectSystemShim\LegacyProject\SourceFileHandlingTests.cs (2)
67var projectFolder = Path.GetDirectoryName(environment.Workspace.CurrentSolution.Projects.Single().FilePath); 81var projectFolder = Path.GetDirectoryName(environment.Workspace.CurrentSolution.Projects.Single().FilePath);
Microsoft.VisualStudio.LanguageServices.Implementation (1)
CodeModel\RootCodeModel.cs (1)
58var projectDirectory = Path.GetDirectoryName(project.FilePath);
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Diagnostics\DiagnosticTableDataSourceTests.vb (2)
591Assert.Equal(workspace.CurrentSolution.GetProject(projectId).FilePath, filename) 772If(projectId Is Nothing, New DiagnosticDataLocation(New FileLinePositionSpan("", Nothing)), New DiagnosticDataLocation(New FileLinePositionSpan(solution.GetProject(projectId).FilePath, Nothing))),
Microsoft.VisualStudio.LanguageServices.Xaml (2)
Extensions.cs (2)
39return document.Project.Solution.Projects.Single(p => p.SupportsCompilation && p.FilePath == document.Project.FilePath);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
185Assert.Equal("FilePath" + version, project.FilePath);