You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tests failed: Templates.Blazor.Tests_net11.0_x64.html [net11.0|x64]
(Error messages not available in AzDO test results for this non-Helix test run)
Stacktrace
Stack Trace
Not available - test runs locally on Windows agent without Helix console log capture.
Previous similar failures (issues #66292, #66293) showed:
at Templates.Test.Helpers.Project.RunDotNetNewAsync(String templateName, ...) in Project.cs
at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(...)
Logs
Console log
BlazorWebTemplate_Works - Failed (all InlineData variants)
All template tests in build 1388488 fail together, strongly suggesting
a template infrastructure issue (same pattern as NU1603 DevServer version
resolution failures tracked in #66292 and #66293).
In build 1388488, ALL Blazor template test classes fail simultaneously:
BlazorWebTemplateTest.BlazorWebTemplate_Works
WebWorkerTemplateE2ETest.* (4 methods)
BlazorWasmTemplateTest.* (3 methods)
This pattern — multiple distinct test classes failing together in a Windows agent run — is characteristic of a shared template test infrastructure issue rather than individual test bugs. The same scenario was previously diagnosed as an NU1603 NuGet restore failure where Microsoft.AspNetCore.Components.WebAssembly.DevServer 11.0.0-ci was not found and a preview version was resolved instead (tracked in #66292 and #66293).
A fix was attempted in #66303 (DevServer version pin fix), but the tests continue to fail after that fix landed, suggesting either the fix is not fully effective in all build environments or a new preview package has reintroduced the condition.
Recommendation
Investigate whether the DevServer version pin introduced in #66303 is correctly applied in the Windows CI agent environment. Check NuGet restore logs in the failing build to confirm whether NU1603 is still occurring.
TEST: BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(browserKind: Chromium, interactivityOption: \"WebAssembly\", authOption: \"None\", allInteractive: False)
RESULT: Fail
TIME: 8.930314700000000271984390565s
EXCEPTION: Xunit.Sdk.TrueException
MESSAGE:
Project failed to publish. Exit code 1.\r\nD:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\.dotnet\\dotnet.exe publish -c Release /bl \\nStdErr: \\nStdOut: Determining projects to restore...\r\n All projects are up-to-date for restore.\r\nD:\\a\\_work\\1\\s\\.dotnet\\sdk\\11.0.100-rc.1.26420.103\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Sztzci0clea0\\AspNet.Sztzci0clea0\\AspNet.Sztzci0clea0.csproj]\r\nD:\\a\\_work\\1\\s\\.packages\\Blazor\\microsoft.net.sdk.webassembly.pack\\11.0.0-rc.1.26453.108\\build\\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the \"ComputeWasmBuildAssets\" 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 \"D:\\a\\_work\\1\\s\\.dotnet\\sdk\\11.0.100-rc.1.26420.103\\MSBuild.exe\" exists and can be run. [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Sztzci0clea0\\AspNet.Sztzci0clea0.Client\\AspNet.Sztzci0clea0.Client.csproj]\r\nD:\\a\\_work\\1\\s\\.packages\\Blazor\\microsoft.net.sdk.webassembly.pack\\11.0.0-rc.1.26453.108\\build\\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The \"ComputeWasmBuildAssets\" task generated invalid items from the \"AssetCandidates\" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Sztzci0clea0\\AspNet.Sztzci0clea0.Client\\AspNet.Sztzci0clea0.Client.csproj]\r\n
STACK TRACE:
at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 54
at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(BrowserKind browserKind, String interactivityOption, String authOption, Boolean allInteractive) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 30
--- End of stack trace from previous location ---
TEST OUTPUT:
| [0.001s] TestLifetime Information: Starting test BlazorWebTemplate_Works-Chromium-WebAssembly-None-False at 2026-09-15T07:33:44
| [0.665s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe new blazor --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\Hives\d9df00d8-1496-450e-8ada-9a7c0846a053\.templateengine" --no-restore -int WebAssembly -au None -n "AspNet.Sztzci0clea0" -o D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0 [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\]
| [2.360s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: The template "Blazor Web App" was created successfully.
| [2.360s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/11.0-third-party-notices for details.
| [2.362s] BlazorTemplates.Tests.BlazorWebTemplateTest Information:
| [2.362s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: An update for template package 'Microsoft.DotNet.Web.ProjectTemplates.11.0@11.0.0-ci' is available.
| [2.362s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: To update the package use:
| [2.363s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: dotnet new install Microsoft.DotNet.Web.ProjectTemplates.11.0@11.0.0-rc.2.26464.113
| [2.363s] BlazorTemplates.Tests.BlazorWebTemplateTest Information:
| [2.413s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [2.413s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe restore /bl [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0]
| [3.905s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Determining projects to restore...
| [5.632s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Restored D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.csproj (in 1.4 sec).
| [6.274s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Restored D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.Client\AspNet.Sztzci0clea0.Client.csproj (in 2.09 sec).
| [6.315s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [6.316s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Publishing ASP.NET Core application...
| [6.316s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish -c Release /bl [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0]
| [6.673s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Determining projects to restore...
| [6.743s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: All projects are up-to-date for restore.
| [6.793s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.csproj]
| [9.102s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the "ComputeWasmBuildAssets" 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 "D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\MSBuild.exe" exists and can be run. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.Client\AspNet.Sztzci0clea0.Client.csproj]
| [9.102s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The "ComputeWasmBuildAssets" task generated invalid items from the "AssetCandidates" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.Client\AspNet.Sztzci0clea0.Client.csproj]
| [9.141s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [9.143s] BlazorTemplates.Tests.BlazorWebTemplateTest Error: Test threw an exception.
| Xunit.Sdk.TrueException: Project failed to publish. Exit code 1.
| D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish -c Release /bl \nStdErr: \nStdOut: Determining projects to restore...
| All projects are up-to-date for restore.
| D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.csproj]
| D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the "ComputeWasmBuildAssets" 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 "D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\MSBuild.exe" exists and can be run. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.Client\AspNet.Sztzci0clea0.Client.csproj]
| D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The "ComputeWasmBuildAssets" task generated invalid items from the "AssetCandidates" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Sztzci0clea0\AspNet.Sztzci0clea0.Client\AspNet.Sztzci0clea0.Client.csproj]
| at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 123
| at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
| at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 54
| at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(BrowserKind browserKind, String interactivityOption, String authOption, Boolean allInteractive) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 30
| at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass47_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 259
| --- End of stack trace from previous location ---
| at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
| at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
| [9.238s] TestLifetime Information: Finished test BlazorWebTemplate_Works-Chromium-WebAssembly-None-False in 9.2375421s
================================================================================
TEST: BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(browserKind: Chromium, interactivityOption: \"Auto\", authOption: \"None\", allInteractive: False)
RESULT: Fail
TIME: 6.3372501000000003301693141111s
EXCEPTION: Xunit.Sdk.TrueException
MESSAGE:
Project failed to publish. Exit code 1.\r\nD:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\.dotnet\\dotnet.exe publish -c Release /bl \\nStdErr: \\nStdOut: Determining projects to restore...\r\n All projects are up-to-date for restore.\r\nD:\\a\\_work\\1\\s\\.dotnet\\sdk\\11.0.100-rc.1.26420.103\\Sdks\\Microsoft.NET.Sdk\\targets\\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Ctl5gqy13nrw\\AspNet.Ctl5gqy13nrw\\AspNet.Ctl5gqy13nrw.csproj]\r\nD:\\a\\_work\\1\\s\\.packages\\Blazor\\microsoft.net.sdk.webassembly.pack\\11.0.0-rc.1.26453.108\\build\\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the \"ComputeWasmBuildAssets\" 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 \"D:\\a\\_work\\1\\s\\.dotnet\\sdk\\11.0.100-rc.1.26420.103\\MSBuild.exe\" exists and can be run. [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Ctl5gqy13nrw\\AspNet.Ctl5gqy13nrw.Client\\AspNet.Ctl5gqy13nrw.Client.csproj]\r\nD:\\a\\_work\\1\\s\\.packages\\Blazor\\microsoft.net.sdk.webassembly.pack\\11.0.0-rc.1.26453.108\\build\\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The \"ComputeWasmBuildAssets\" task generated invalid items from the \"AssetCandidates\" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\\a\\_work\\1\\s\\src\\ProjectTemplates\\test\\Templates.Blazor.Tests\\bin\\Release\\net11.0\\TestTemplates\\AspNet.Ctl5gqy13nrw\\AspNet.Ctl5gqy13nrw.Client\\AspNet.Ctl5gqy13nrw.Client.csproj]\r\n
STACK TRACE:
at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 54
at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(BrowserKind browserKind, String interactivityOption, String authOption, Boolean allInteractive) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 30
--- End of stack trace from previous location ---
TEST OUTPUT:
| [0.001s] TestLifetime Information: Starting test BlazorWebTemplate_Works-Chromium-Auto-None-False at 2026-09-15T07:33:54
| [0.738s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe new blazor --debug:disable-sdk-templates --debug:custom-hive "D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\Hives\d9df00d8-1496-450e-8ada-9a7c0846a053\.templateengine" --no-restore -int Auto -au None -n "AspNet.Ctl5gqy13nrw" -o D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\]
| [2.257s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: The template "Blazor Web App" was created successfully.
| [2.257s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: This template contains technologies from parties other than Microsoft, see https://aka.ms/aspnetcore/11.0-third-party-notices for details.
| [2.259s] BlazorTemplates.Tests.BlazorWebTemplateTest Information:
| [2.259s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: An update for template package 'Microsoft.DotNet.Web.ProjectTemplates.11.0@11.0.0-ci' is available.
| [2.259s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: To update the package use:
| [2.259s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: dotnet new install Microsoft.DotNet.Web.ProjectTemplates.11.0@11.0.0-rc.2.26464.113
| [2.259s] BlazorTemplates.Tests.BlazorWebTemplateTest Information:
| [2.307s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [2.308s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe restore /bl [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw]
| [3.489s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Determining projects to restore...
| [3.754s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Restored D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.csproj (in 47 ms).
| [3.755s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Restored D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.Client\AspNet.Ctl5gqy13nrw.Client.csproj (in 48 ms).
| [3.801s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [3.801s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Publishing ASP.NET Core application...
| [3.801s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: ==> D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish -c Release /bl [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw]
| [4.234s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Determining projects to restore...
| [4.308s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: All projects are up-to-date for restore.
| [4.348s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.csproj]
| [6.472s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the "ComputeWasmBuildAssets" 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 "D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\MSBuild.exe" exists and can be run. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.Client\AspNet.Ctl5gqy13nrw.Client.csproj]
| [6.472s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The "ComputeWasmBuildAssets" task generated invalid items from the "AssetCandidates" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.Client\AspNet.Ctl5gqy13nrw.Client.csproj]
| [6.502s] BlazorTemplates.Tests.BlazorWebTemplateTest Information: Process exited.
| [6.504s] BlazorTemplates.Tests.BlazorWebTemplateTest Error: Test threw an exception.
| Xunit.Sdk.TrueException: Project failed to publish. Exit code 1.
| D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish -c Release /bl \nStdErr: \nStdOut: Determining projects to restore...
| All projects are up-to-date for restore.
| D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.csproj]
| D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(332,5): error MSB4216: Could not run the "ComputeWasmBuildAssets" 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 "D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\MSBuild.exe" exists and can be run. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.Client\AspNet.Ctl5gqy13nrw.Client.csproj]
| D:\a\_work\1\s\.packages\Blazor\microsoft.net.sdk.webassembly.pack\11.0.0-rc.1.26453.108\build\Microsoft.NET.Sdk.WebAssembly.Browser.targets(351,7): error MSB4027: The "ComputeWasmBuildAssets" task generated invalid items from the "AssetCandidates" output parameter. This object is no longer valid because the MetadataLoadContext that created it has been disposed. [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.Ctl5gqy13nrw\AspNet.Ctl5gqy13nrw.Client\AspNet.Ctl5gqy13nrw.Client.csproj]
| at Xunit.Assert.True(Boolean condition, String userMessage) in /_/src/xunit.assert/Asserts/BooleanAsserts.cs:line 123
| at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
| at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 54
| at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_Works(BrowserKind browserKind, String interactivityOption, String authOption, Boolean allInteractive) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 30
| at Xunit.Sdk.TestInvoker`1.<>c__DisplayClass47_0.<<InvokeTestMethodAsync>b__1>d.MoveNext() in /_/src/xunit.execution/Sdk/Frameworks/Runners/TestInvoker.cs:line 259
| --- End of stack trace from previous location ---
| at Xunit.Sdk.ExecutionTimer.AggregateAsync(Func`1 asyncAction) in /_/src/xunit.execution/Sdk/Frameworks/ExecutionTimer.cs:line 48
| at Xunit.Sdk.ExceptionAggregator.RunAsync(Func`1 code) in /_/src/xunit.core/Sdk/ExceptionAggregator.cs:line 90
| [6.616s] TestLifetime Information: Finished test BlazorWebTemplate_Works-Chromium-Auto-None-False in 6.6152958s
Activity
github-actions commentedon Apr 21, 2026
Investigation
BlazorWebTemplate_Workshas failed in at least 2 CI builds onmain:Pattern Analysis
In build 1388488, ALL Blazor template test classes fail simultaneously:
BlazorWebTemplateTest.BlazorWebTemplate_WorksWebWorkerTemplateE2ETest.*(4 methods)BlazorWasmTemplateTest.*(3 methods)This pattern — multiple distinct test classes failing together in a Windows agent run — is characteristic of a shared template test infrastructure issue rather than individual test bugs. The same scenario was previously diagnosed as an NU1603 NuGet restore failure where
Microsoft.AspNetCore.Components.WebAssembly.DevServer11.0.0-ci was not found and a preview version was resolved instead (tracked in #66292 and #66293).A fix was attempted in #66303 (DevServer version pin fix), but the tests continue to fail after that fix landed, suggesting either the fix is not fully effective in all build environments or a new preview package has reintroduced the condition.
Recommendation
Investigate whether the DevServer version pin introduced in #66303 is correctly applied in the Windows CI agent environment. Check NuGet restore logs in the failing build to confirm whether NU1603 is still occurring.
Quarantine BlazorWebTemplateTest.BlazorWebTemplate_Works
Quarantine BlazorWebTemplateTest.BlazorWebTemplate_Works (#66405)
ilonatommy commentedon Sep 15, 2026
extracted log: