77 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)
804project = project.Solution.WithProjectFilePath(project.Id, @$"z:\\{project.FilePath}").GetProject(project.Id);
Microsoft.CodeAnalysis.EditorFeatures (3)
EditAndContinue\EditAndContinueLanguageService.cs (1)
289var projectId = solution.Projects.FirstOrDefault(project => project.FilePath == path)?.Id;
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 (14)
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 (5)
829log.Write("EnC state of {0} '{1}' queried: project not loaded", newProject.Name, newProject.FilePath); 851log.Write("Found {0} potentially changed document(s) in project {1} '{2}'", changedOrAddedDocuments.Count, newProject.Name, newProject.FilePath); 868log.Write("Emitting update of {0} '{1}': project not built", newProject.Name, newProject.FilePath); 915log.Write("Project summary for {0} '{1}': {2}", newProject.Name, newProject.FilePath, projectSummary); 975log.Write("Emitting update of '{0}' {1}", newProject.Name, newProject.FilePath);
EditAndContinue\Utilities\Extensions.cs (3)
45if (project.FilePath == null) 53log?.Write("Project '{0}' doesn't support EnC: no EnC service", project.FilePath); 59log?.Write("Project '{0}' doesn't support EnC: no generated files output directory", project.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)
53Contract.ThrowIfNull(document.Project.FilePath); 55var projectDirectoryName = Path.GetDirectoryName(document.Project.FilePath); 167var projects = solution.Projects.Where(project => project.FilePath == projectIdentifier.Uri.LocalPath).ToImmutableArray();
Handler\CodeActions\CodeActionResolveHelper.cs (1)
233else 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)
130Assert.Equal(libraryProject.FilePath, workspace.CurrentSolution.GetProject(projectRefId).FilePath); 176Assert.Equal(projectRefFilePath, project.Solution.GetProject(projectRefId).FilePath); 202projectPaths.Add(project.FilePath); 292projectPaths.Add(project.FilePath); 320var fileName = PathUtilities.GetFileName(project.FilePath); 335Assert.True(false, $"Encountered unexpected project: {project.FilePath}"); 348var projects = workspace.CurrentSolution.Projects.Where(p => p.FilePath.EndsWith("Project.csproj")); 520Assert.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); 3212var 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)
272Assert.Equal("FilePath" + version, project.FilePath);