Commit c8b410a 1 parent eb38986 commit c8b410a Copy full SHA for c8b410a
File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,18 @@ export class DotnetRuntimeExtensionResolver implements IHostExecutableResolver {
105
105
return this . hostInfo ;
106
106
}
107
107
108
+ // We have to use '8.0' here because the runtme extension doesn't support acquiring patch versions.
109
+ // The acquisition will always acquire the latest however, so it will be at least 8.0.10.
110
+ const dotnetAcquireVersion = '8.0' ;
108
111
let status = await vscode . commands . executeCommand < IDotnetAcquireResult > ( 'dotnet.acquireStatus' , {
109
- version : DotNetRuntimeVersion ,
112
+ version : dotnetAcquireVersion ,
110
113
requestingExtensionId : CSharpExtensionId ,
111
114
} ) ;
112
115
if ( status === undefined ) {
113
116
await vscode . commands . executeCommand ( 'dotnet.showAcquisitionLog' ) ;
114
117
115
118
status = await vscode . commands . executeCommand < IDotnetAcquireResult > ( 'dotnet.acquire' , {
116
- version : DotNetRuntimeVersion ,
119
+ version : dotnetAcquireVersion ,
117
120
requestingExtensionId : CSharpExtensionId ,
118
121
} ) ;
119
122
if ( ! status ?. dotnetPath ) {
You can’t perform that action at this time.
0 commit comments