74 references to FilePath
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (2)
58var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath); 91var solutionOrProjectFilePath = project.Solution?.FilePath ?? project.FilePath;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Formatting\CodeCleanupTests.cs (1)
813project = 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.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 (12)
CodeFixes\Configuration\ConfigurationUpdater.cs (1)
308if (project?.FilePath?.StartsWith(analyzerConfigDirectory) == true)
CodeFixes\Suppression\AbstractSuppressionCodeFixProvider.AbstractGlobalSuppressMessageCodeAction.cs (2)
47if (!string.IsNullOrEmpty(_project.FilePath)) 49var fullPath = Path.GetFullPath(_project.FilePath);
CodeRefactorings\SyncNamespace\AbstractSyncNamespaceCodeRefactoringProvider.State.cs (1)
157var projectRoot = PathUtilities.GetDirectoryName(document.Project.FilePath);
EditAndContinue\EditSession.cs (6)
821if (newProject.FilePath == null) 830log.Write("EnC state of {0} '{1}' queried: project not loaded", newProject.Name, newProject.FilePath); 852log.Write("Found {0} potentially changed document(s) in project {1} '{2}'", changedOrAddedDocuments.Count, newProject.Name, newProject.FilePath); 869log.Write("Emitting update of {0} '{1}': project not built", newProject.Name, newProject.FilePath); 916log.Write("Project summary for {0} '{1}': {2}", newProject.Name, newProject.FilePath, projectSummary); 994log.Write("Emitting update of '{0}' {1}", newProject.Name, newProject.FilePath);
UnusedReferences\UnusedReferencesRemover.cs (1)
31.Where(project => projectFilePath.Equals(project.FilePath, StringComparison.OrdinalIgnoreCase));
Workspace\CompileTimeSolutionProvider.cs (1)
188var designTimeProjectDirectoryName = PathUtilities.GetDirectoryName(designTimeDocument.Project.FilePath)!;
Microsoft.CodeAnalysis.LanguageServer (6)
LanguageServer\Handler\DebugConfiguration\WorkspaceDebugConfigurationHandler.cs (3)
43return PathUtilities.IsSameDirectoryOrChildOf(project.FilePath!, workspacePath.LocalPath); 50return new ProjectDebugConfiguration(project.FilePath!, project.OutputFilePath!, GetProjectName(project), targetsDotnetCore, isExe, project.Solution.FilePath); 62var projectPath = project.FilePath!;
LanguageServer\Handler\Restore\RestoreHandler.cs (1)
104.Select(p => p.FilePath)
Testing\RunTestsHandler.cs (2)
123var workingDirectory = Path.GetDirectoryName(document.Project.FilePath); 126var projectFileName = Path.GetFileName(document.Project.FilePath);
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Extensions\Extensions.cs (3)
51Contract.ThrowIfNull(document.Project.FilePath); 53var projectDirectoryName = Path.GetDirectoryName(document.Project.FilePath); 144var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.Uri.LocalPath).ToImmutableArray();
Handler\CodeActions\CodeActionResolveHelper.cs (1)
225else if (newTextDoc.Project.FilePath != null)
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)
191location: new DiagnosticDataLocation(new FileLinePositionSpan(project?.FilePath ?? solution.FilePath ?? "", span: default)),
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
31=> "_Source_" + project.FilePath;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ProjectExtensions.cs (2)
58var diagnosticFilePath = PathUtilities.GetDirectoryName(diagnostic?.Location.SourceTree?.FilePath ?? project.FilePath); 91var solutionOrProjectFilePath = project.Solution?.FilePath ?? project.FilePath;
Microsoft.CodeAnalysis.Workspaces.MSBuild (6)
MSBuild\MSBuildWorkspace.cs (5)
340var projectPath = project.FilePath; 653if (project?.FilePath is not null) 656var reference = new ProjectFileReference(project.FilePath, projectReference.Aliases, referenceOutputAssembly: true); 668if (project?.FilePath is not null) 670_applyChangesProjectFile.RemoveProjectReferenceAsync(project.Name, project.FilePath, CancellationToken.None).Wait();
MSBuild\ProjectMap.cs (1)
78Add(project.Id, project.FilePath, project.OutputFilePath, project.OutputRefFilePath);
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (13)
NetCoreTests.cs (9)
124Assert.Equal(libraryProject.FilePath, workspace.CurrentSolution.GetProject(projectRefId).FilePath); 170Assert.Equal(projectRefFilePath, project.Solution.GetProject(projectRefId).FilePath); 196projectPaths.Add(project.FilePath); 286projectPaths.Add(project.FilePath); 314var fileName = PathUtilities.GetFileName(project.FilePath); 329Assert.True(false, $"Encountered unexpected project: {project.FilePath}"); 342var projects = workspace.CurrentSolution.Projects.Where(p => p.FilePath.EndsWith("Project.csproj")); 480Assert.Equal(projectRefFilePath, project.Solution.GetProject(projectRefId).FilePath);
VisualStudioMSBuildWorkspaceTests.cs (4)
809var expectedOutputPath = Path.GetDirectoryName(project.FilePath); 827var expectedOutputPath = Path.Combine(Path.GetDirectoryName(project.FilePath), @"bin"); 2032var projectFileText = File.ReadAllText(project2.FilePath); 3213var project = solution.Projects.Single(p => p.FilePath.EndsWith("CSharpProject_ProjectReference.csproj"));
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (4)
Workspaces\TestWorkspace`1.cs (4)
467if (projectChanges.OldProject.FilePath != projectChanges.NewProject.FilePath) 472hostProject.OnProjectFilePathChanged(projectChanges.NewProject.FilePath); 473base.OnProjectNameChanged(projectChanges.NewProject.Id, projectChanges.NewProject.Name, projectChanges.NewProject.FilePath);
Microsoft.VisualStudio.LanguageServices (11)
Diagnostics\VisualStudioDiagnosticAnalyzerService.cs (2)
317p => p != project && p.FilePath == project.FilePath && p.State.NameAndFlavor.name == project.State.NameAndFlavor.name).ToImmutableArray();
GenerateType\GenerateTypeDialogViewModel.cs (3)
271if (!TryGetImplicitFilePath(this.SelectedProject.FilePath ?? string.Empty, ServicesVSResources.Project_Path_is_illegal, out implicitFilePath)) 313if (this.SelectedProject.FilePath == null) 317else if (!TryGetImplicitFilePath(this.SelectedProject.FilePath, ServicesVSResources.Project_Path_is_illegal, out projectRootPath))
Library\ObjectBrowser\ObjectList.cs (1)
915data.bstrFile = project.FilePath;
Progression\GraphNodeIdCreation.cs (1)
32GraphNodeId.GetPartial(CodeGraphNodeIdName.Assembly, new Uri(document.Project.FilePath, UriKind.RelativeOrAbsolute)),
ProjectSystem\VisualStudioWorkspaceImpl.cs (1)
930if (PathUtilities.GetDirectoryName(CurrentSolution.GetProject(documentInfo.Id.ProjectId)?.FilePath) == solutionDirectory)
SyncNamespaces\SyncNamespacesCommandHandler.cs (1)
122.Where(project => project.FilePath?.Equals(projectFilePath, StringComparison.OrdinalIgnoreCase) == true)
TaskList\ProjectExternalErrorReporter.cs (1)
110new 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.Xaml (2)
Extensions.cs (2)
34return document.Project.Solution.Projects.Single(p => p.SupportsCompilation && p.FilePath == document.Project.FilePath);
Roslyn.VisualStudio.Next.UnitTests (1)
Services\SolutionServiceTests.cs (1)
270Assert.Equal("FilePath" + version, project.FilePath);