Skip to content

Commit 107f5fe

Browse files
committed
Dispose
1 parent de5a8dd commit 107f5fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/dotnet-format.UnitTests/Analyzers/ThirdPartyAnalyzerFormatterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public async Task InitializeAsync()
3434

3535
// Load the analyzer_project into a MSBuildWorkspace.
3636
var workspacePath = Path.Combine(TestProjectsPathHelper.GetProjectsDirectory(), s_analyzerProjectFilePath);
37-
var loadedWorkspace = await MSBuildWorkspaceLoader.LoadAsync(workspacePath, WorkspaceType.Project, binaryLogPath: null, logWorkspaceWarnings: true, logger, targetFramework: null, CancellationToken.None);
37+
using var loadedWorkspace = await MSBuildWorkspaceLoader.LoadAsync(workspacePath, WorkspaceType.Project, binaryLogPath: null, logWorkspaceWarnings: true, logger, targetFramework: null, CancellationToken.None);
3838

3939
TestOutputHelper.WriteLine(logger.GetLog());
4040

0 commit comments

Comments
 (0)