Skip to content

Blazor Baselines have hardcoded runtime version #44226

@TanayParikh

Description

@TanayParikh

it looks like the manifest checks are breaking because 6.0.7->6.0.8 but:

Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorLegacyIntegrationTest60.Publish60Hosted_Works [FAIL]
      Expected root[14] to be Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.7.[[hash]].js, SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.7.[[hash]].js, AssetKind: Publish, AssetMode: All, AssetRole: Primary, RelatedAsset: , AssetTraitName: BlazorWebAssemblyResource, AssetTraitValue: native, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.7.[[hash]].js, but found Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.8.[[hash]].js, SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.8.[[hash]].js, AssetKind: Publish, AssetMode: All, AssetRole: Primary, RelatedAsset: , AssetTraitName: BlazorWebAssemblyResource, AssetTraitValue: native, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.8.[[hash]].js.
      Expected root[15] to be Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\compress\[[_framework/dotnet.6.0.7.[[hash]].js.br]], SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.7.[[hash]].js.br, AssetKind: Publish, AssetMode: All, AssetRole: Alternative, RelatedAsset: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.7.[[hash]].js, AssetTraitName: Content-Encoding, AssetTraitValue: br, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.7.[[hash]].js, but found Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\compress\[[_framework/dotnet.6.0.8.[[hash]].js.br]], SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.8.[[hash]].js.br, AssetKind: Publish, AssetMode: All, AssetRole: Alternative, RelatedAsset: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.8.[[hash]].js, AssetTraitName: Content-Encoding, AssetTraitValue: br, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.8.[[hash]].js.
      Expected root[16] to be Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\build-gz\[[_framework/dotnet.6.0.7.[[hash]].js.gz]], SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.7.[[hash]].js.gz, AssetKind: Publish, AssetMode: All, AssetRole: Alternative, RelatedAsset: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.7.[[hash]].js, AssetTraitName: Content-Encoding, AssetTraitValue: gzip, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\build-gz\[[_framework/dotnet.6.0.7.[[hash]].js.gz]], but found Identity: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\build-gz\[[_framework/dotnet.6.0.8.[[hash]].js.gz]], SourceType: Project, SourceId: BlazorWasmHosted60.Client, ContentRoot: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\publish\wwwroot\, BasePath: /, RelativePath: _framework/dotnet.6.0.8.[[hash]].js.gz, AssetKind: Publish, AssetMode: All, AssetRole: Alternative, RelatedAsset: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\bin\Debug\net6.0\wwwroot\_framework\dotnet.6.0.8.[[hash]].js, AssetTraitName: Content-Encoding, AssetTraitValue: gzip, CopyToOutputDirectory: Never, CopyToPublishDirectory: PreserveNewest, OriginalItemSpec: C:\h\w\9FA408D9\t\dotnetSdkTests\et2ui2sc.td0\Publish60Host---0200F604\Client\obj\Debug\net6.0\build-gz\[[_framework/dotnet.6.0.8.[[hash]].js.gz]].
  1. A hard coded version check in for 6.0.x is extremely fragile
  2. In reality that version should really probably be 6.0.9 see [main] Update template versions from dotnet/aspnetcore installer#14488

cc @dougbu

Originally posted by @lewing in dotnet/sdk#27741 (comment)

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Componentstask

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions