-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Description
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1324975
Build error leg or test failing: Build Test: Windows Server x64
Pull request: #65695
Error Message
{
"ErrorPattern": "NU1603.*DevServer.*was not found",
"BuildRetry": false,
"ExcludeConsoleLog": false
}Description
Blazor WASM template tests fail with NU1603 when a darc feed (from VMR codeflow) contains a stable DevServer package that outranks the locally-built prerelease (-ci) package. NuGet considers stable versions (e.g. 10.0.6) higher than prerelease versions (e.g. 10.0.6-ci), so it resolves to the stable version, triggering NU1603 ("exact version not found"). Since WarningsAsErrors is enabled, this becomes a fatal error.
This will recur on every servicing patch version — not just 10.0.6 — whenever the VMR official build publishes a stable DevServer package to a darc feed that is then added to NuGet.config via codeflow.
Failing tests:
BlazorWasmStandaloneTemplate_Works(Chromium)BlazorWasmStandalonePwaTemplate_Works(Chromium)BlazorWasmStandaloneTemplate_AzureActiveDirectoryTemplate_Works
Known issue matching note: The AzureActiveDirectoryTemplate_Works test reports an empty error message in AzDO test results, so Build Analysis cannot match it. The other two tests include the NU1603 error in their error message and will match. The overall build error in the AzDO timeline only says Tests failed: ...Templates.Blazor.Tests_net10.0_x64.html which is too generic to use as a pattern without risking false matches on unrelated Blazor test failures.
Root cause: VMR official builds produce stable-versioned packages published to darc feeds. These feeds are added to NuGet.config via codeflow PRs. The template stamps a -ci prerelease version as the DevServer version (correct for CI builds), but the darc feed has the stable version (semver-higher), causing NuGet to resolve to it and emit NU1603.
First seen: Build 1324271 (PR #65687, codeflow from VMR build 304915, merged Mar 6 2026).
Proposed fix: Pin the exact DevServer package version in the test infrastructure (e.g., [x.y.z-ci] exact version range) so the locally-built package is always used during template tests. The shipped template should continue using >= semantics for customers.
Report
| Build | Definition | Test | Pull Request |
|---|---|---|---|
| 1329520 | dotnet/aspnetcore | BlazorTemplates.Tests.BlazorWasmTemplateTest.BlazorWasmStandalonePwaTemplate_Works(browserKind: Chromium) | #65721 |
| 1327578 | dotnet/aspnetcore | BlazorTemplates.Tests.BlazorWasmTemplateTest.BlazorWasmStandalonePwaTemplate_Works(browserKind: Chromium) | #65718 |
| 1324975 | dotnet/aspnetcore | BlazorTemplates.Tests.BlazorWasmTemplateTest.BlazorWasmStandalonePwaTemplate_Works(browserKind: Chromium) | #65695 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 3 | 3 |