Skip to content

Commit b2526a8

Browse files
committed
Require at least version 8.0.10 of the .net runtime
1 parent 8dd4dfc commit b2526a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lsptoolshost/dotnetRuntimeExtensionResolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { getDotnetInfo } from '../shared/utils/getDotnetInfo';
1616
import { readFile } from 'fs/promises';
1717
import { RuntimeInfo } from '../shared/utils/dotnetInfo';
1818

19-
export const DotNetRuntimeVersion = '8.0';
19+
export const DotNetRuntimeVersion = '8.0.10';
2020

2121
interface IDotnetAcquireResult {
2222
dotnetPath: string;
@@ -166,7 +166,7 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
166166
}
167167

168168
// Verify that the dotnet we found includes a runtime version that is compatible with our requirement.
169-
const requiredRuntimeVersion = semver.parse(`${DotNetRuntimeVersion}.0`);
169+
const requiredRuntimeVersion = semver.parse(`${DotNetRuntimeVersion}`);
170170
if (!requiredRuntimeVersion) {
171171
throw new Error(`Unable to parse minimum required version ${DotNetRuntimeVersion}`);
172172
}

0 commit comments

Comments
 (0)