-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
I'm trying out the new feature to use .NET MSBuild Tasks with .NET Framework MSBuild that shipped in RC 2, but when trying to have Visual Studio 2026 use the task, it's not working.
The build starts, and at first it looks like it's hanging, but eventually it times out and I get the following error:
error MSB4216: Could not run the "SqlPersistenceScriptBuilderTask" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x64". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\10.0.100-rc.2.25502.107" exists and can be run
I have a draft PR for the changes I've made to our MSBuild task here, but I'm fairly sure I've made the changes as described in the RC 2 release notes correctly.
I've also included the binlogs and CommTrace files from VS for the failed build. Looking through it, I'm not really seeing anything that stands out, though this does seem a bit odd:
Could not run the "SqlPersistenceScriptBuilderTask" task because MSBuild could not create or connect to a task host with runtime "NET" and architecture "x64". Please ensure that (1) the requested runtime and/or architecture are available on the machine, and (2) that the required executable "C:\Program Files\dotnet\sdk\10.0.100-rc.2.25502.107" exists and can be run.
Building the project from the command line works fine, though it's not trying to use the task host from that build.