dotnet / dotnet/runtime

BlazorWasm_CannotAOT_InDebug test failure

Open
#125,244 3 comments 0 reactions 0 assignees View on GitHub
arch-wasm area-VM-meta-mono blocking-clean-ci Known Build Error
Dominant language
C#
Stars
18.3k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

## Build Information
Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1320821
Build error leg or test failing: Wasm.Build.Tests.Blazor.BuildPublishTests.BlazorWasm_CannotAOT_InDebug(config: Debug)
Pull request: https://github.com/dotnet/runtime/pull/125190

## Error Message
```
Replacing dotnet process output with messages from binlog
Wasm.Build.Tests.Blazor.BuildPublishTests.BlazorWasm_CannotAOT_InDebug(config: Debug) [FAIL]
Assert.Contains() Failure: Sub-string not found
String: "Property reassignment: $(MSBuildProjectEx"···
Not found: "AOT is not supported in debug configurati"···
Stack Trace:
/_/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs(148,0): at Wasm.Build.Tests.Blazor.BuildPublishTests.BlazorWasm_CannotAOT_InDebug(Configuration config)
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithOneArg(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
Output:

** -------- publish -------- **

Binlog path: /root/helix/work/workitem/uploads/xharness-output/logs/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/BlazorBasicTestApp-publish.binlog
[] Executing (Captured Output) - /root/helix/work/workitem/e/dotnet-latest/dotnet publish -bl:/root/helix/work/workitem/uploads/xharness-output/logs/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/BlazorBasicTestApp-publish.binlog -p:Configuration=Debug -nr:false -p:CompressionEnabled=false -p:WasmEnableHotReload=false - in pwd /root/helix/work/workitem/e/wbt artifacts/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/App
[DOTNET_ROOT] = /root/helix/work/workitem/e/dotnet-latest
[DOTNET_INSTALL_DIR] = /root/helix/work/workitem/e/dotnet-latest
[DOTNET_SKIP_FIRST_TIME_EXPERIENCE] = 1
[PATH] = /root/helix/work/workitem/e/dotnet-latest:/__w/1/s/artifacts/bin/geckodriver/geckodriver:/root/helix/work/correlation/dotnet-latest:/root/helix/work/correlation/xharness-cli:/root/helix/work/correlation/dotnet-cli:/root/helix/work/correlation/chrome-linux:/root/helix/work/correlation/chromedriver_linux64:/home/helixbot/.vsts-env/bin:/home/helixbot/.jsvu/bin:/home/helixbot/.vsts-env/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[EM_WORKAROUND_PYTHON_BUG_34780] = 1
[NUGET_PACKAGES] = /root/helix/work/workitem/e/wbt artifacts/nuget/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉
[TreatPreviousAsCurrent] = false
[] Determining projects to restore...
[] Restored /root/helix/work/workitem/e/wbt artifacts/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/App/BlazorBasicTestApp.csproj (in 1.66 sec).
[] /root/helix/work/workitem/e/dotnet-latest/sdk/11.0.100-preview.3.26124.102/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(383,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt artifacts/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/App/BlazorBasicTestApp.csproj]
[] BlazorBasicTestApp -> /root/helix/work/workitem/e/wbt artifacts/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/BlazorBasicTestApp.dll
[] BlazorBasicTestApp (Blazor output) -> /root/helix/work/workitem/e/wbt artifacts/blazorwasm_Debug_True_luwbcve3_g5k_鿀蜒枛遫䡫煉/App/bin/Debug/net11.0/wwwroot
[] ** MicrosoftNetCoreAppRuntimePackDir : '/root/helix/work/workitem/e/dotnet-latest/packs/Microsoft.NETCore.App.Runtime.Mono.browser-wasm/11.0.0-ci'
[] Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
[] Optimizing assemblies for size. This process might take a while.
Replacing dotnet process output with messages from binlog
Wasm.Build.Tests.Blazor.BuildPublishTests.BlazorWasm_CannotAOT_InDebug(config: Debug) [FINISHED] Time: 54.9376157s
Wasm.Build.Tests.Blazor.BuildPublishTests.DefaultTemplate_NoAOT_WithWorkload(config: Debug, testUnicode: False) [STARTING]

** -------- publish -------- **
```

Fill the error message using [step by step known issues guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssueJsonStepByStep.md).

```json
{
"ErrorMessage": "BlazorWasm_CannotAOT_InDebug",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
```

### Known issue validation
**Build: :mag_right:** https://dev.azure.com/dnceng-public/public/_build/results?buildId=1320821
**Error message validated:** `[BlazorWasm_CannotAOT_InDebug`]
**Result validation:** :white_check_mark: Known issue matched with the provided build.
**Validation performed at:** 3/5/2026 10:17:47 PM UTC

### Report

|Build|Repository|Test|Pull Request|
|---|---|---|---|
|[1569889](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1569889)|dotnet/runtime|[Wasm.Build.Tests.Blazor.BuildPublishTests.BlazorWasm_CannotAOT_InDebug(config: Debug)](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1569889&view=ms.vss-test-web.build-test-results-tab&runId=43243200&resultId=100087)|dotnet/runtime#132759|
|[1568813](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1568813)|dotnet/runtime|[Workloads-ST-Wasm.Build.Tests.Blazor.BuildPublishTests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1568813&view=ms.vss-test-web.build-test-results-tab&runId=43200472&resultId=100313)|dotnet/runtime#132790|
#### Summary
|24-Hour Hit Count|7-Day Hit Count|1-Month Count|
|---|---|---|
|0|0|2|

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.