12 references to FindWorkspace
dotnet-format (2)
Commands\FormatCommandCommon.cs (1)
311
var (isSolution, workspaceFilePath) = MSBuildWorkspaceFinder.
FindWorkspace
(currentDirectory, slnOrProject);
Workspaces\MSBuildWorkspaceFinder.cs (1)
30
?
FindWorkspace
(workspacePath!) // IsNullOrEmpty is not annotated on .NET Core 2.1
dotnet-format.UnitTests (10)
MSBuild\MSBuildWorkspaceFinderTests.cs (10)
27
var exception = Assert.Throws<FileNotFoundException>(() => MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path));
40
var exception = Assert.Throws<FileNotFoundException>(() => MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path));
53
var exception = Assert.Throws<FileNotFoundException>(() => MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path));
66
var exception = Assert.Throws<FileNotFoundException>(() => MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path));
77
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path);
91
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path, "solution_b.sln");
103
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(ProjectsPath, Path);
115
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(ProjectsPath, Path);
129
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path);
143
var (isSolution, workspacePath) = MSBuildWorkspaceFinder.
FindWorkspace
(testInstance.Path, "project_b.csproj");