Skip to content

Commit 584999e

Browse files
committed
Make FindUsableMSBuildAsync nullable
1 parent bccc578 commit 584999e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Workspaces/MSBuild/Core/Rpc/RemoteBuildHost.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public RemoteBuildHost(RpcClient client)
1919
_client = client;
2020
}
2121

22-
public Task<MSBuildLocation> FindUsableMSBuildAsync(string projectOrSolutionFilePath, CancellationToken cancellationToken)
23-
=> _client.InvokeAsync<MSBuildLocation>(BuildHostTargetObject, nameof(IBuildHost.FindUsableMSBuild), parameters: [projectOrSolutionFilePath], cancellationToken);
22+
public Task<MSBuildLocation?> FindUsableMSBuildAsync(string projectOrSolutionFilePath, CancellationToken cancellationToken)
23+
=> _client.InvokeNullableAsync<MSBuildLocation>(BuildHostTargetObject, nameof(IBuildHost.FindUsableMSBuild), parameters: [projectOrSolutionFilePath], cancellationToken);
2424

2525
public async Task<RemoteProjectFile> LoadProjectFileAsync(string projectFilePath, string languageName, CancellationToken cancellationToken)
2626
{

0 commit comments

Comments
 (0)