11 references to MSBuildWorkspaceFinder
dotnet-format (1)
Commands\FormatCommandCommon.cs (1)
311
var (isSolution, workspaceFilePath) =
MSBuildWorkspaceFinder
.FindWorkspace(currentDirectory, slnOrProject);
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");