Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error BLAZORSDK1001 in wasm tests #85354

Closed
sbomer opened this issue Apr 25, 2023 · 4 comments · Fixed by #85685
Closed

error BLAZORSDK1001 in wasm tests #85354

sbomer opened this issue Apr 25, 2023 · 4 comments · Fixed by #85685
Assignees
Labels
arch-wasm WebAssembly architecture area-Build-mono disabled-test The test is disabled in source code against the issue
Milestone

Comments

@sbomer
Copy link
Member

sbomer commented Apr 25, 2023

error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project.

This error was encountered in a number of the wasm test legs in https://dev.azure.com/dnceng-public/public/_build/results?buildId=250766&view=logs&jobId=4de1b480-db2d-5e2d-1b07-cb01593ab740.

Expected 0 exit code but got 1: /root/helix/work/workitem/e/dotnet-latest/dotnet build -bl:/root/helix/work/workitem/uploads/xharness-output/logs/blz_razor_lib_top_youwyvwp.vdm/blz_razor_lib_top_youwyvwp.vdm-build.binlog -p:Configuration=Release -p:WasmEnableWebcil=true -p:BlazorEnableCompression=false -nr:false  /warnaserror
Standard Output:
[] MSBuild version 17.7.0-preview-23221-02+ac3f5ad89 for .NET
[]   Determining projects to restore...
[]   Restored /root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj (in 341 ms).
[]   1 of 2 projects are up-to-date for restore.
[] /root/helix/work/workitem/e/dotnet-latest/sdk/8.0.100-preview.4.23224.16/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(287,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]   RazorClassLibrary -> /root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/RazorClassLibrary/bin/Release/net8.0/RazorClassLibrary.dll
[] /root/helix/work/workitem/e/wbt/nuget/blz_razor_lib_top_youwyvwp.vdm/microsoft.net.sdk.webassembly.pack/8.0.0-preview.4.23224.2/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(314,5): error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project. [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]
[] Build FAILED.
[]
[] /root/helix/work/workitem/e/wbt/nuget/blz_razor_lib_top_youwyvwp.vdm/microsoft.net.sdk.webassembly.pack/8.0.0-preview.4.23224.2/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(314,5): error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project. [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]     0 Warning(s)
[]     1 Error(s)
[]
[] Time Elapsed 00:00:15.07
[]
[] Workload updates are available. Run dotnet workload list for more information.
   at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
   at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
   at Wasm.Build.Tests.BuildTestBase.BlazorBuildInternal(String id, String config, Boolean publish, Boolean setWasmDevel, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 601
   at Wasm.Build.Tests.BuildTestBase.BlazorBuild(BlazorBuildOptions options, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 543
   at Wasm.Build.Tests.Blazor.BuildPublishTests.BugRegression_60479_WithRazorClassLib() in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs:line 208
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "Unable to find 'RazorClassLibrary.dll' to be lazy loaded later.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Apr 25, 2023
@lewing lewing added this to the 8.0.0 milestone Apr 25, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Apr 25, 2023
@maraf maraf added the disabled-test The test is disabled in source code against the issue label Apr 25, 2023
@maraf maraf self-assigned this Apr 25, 2023
@radical radical added the arch-wasm WebAssembly architecture label May 1, 2023
@ghost
Copy link

ghost commented May 1, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project.

This error was encountered in a number of the wasm test legs in https://dev.azure.com/dnceng-public/public/_build/results?buildId=250766&view=logs&jobId=4de1b480-db2d-5e2d-1b07-cb01593ab740.

Expected 0 exit code but got 1: /root/helix/work/workitem/e/dotnet-latest/dotnet build -bl:/root/helix/work/workitem/uploads/xharness-output/logs/blz_razor_lib_top_youwyvwp.vdm/blz_razor_lib_top_youwyvwp.vdm-build.binlog -p:Configuration=Release -p:WasmEnableWebcil=true -p:BlazorEnableCompression=false -nr:false  /warnaserror
Standard Output:
[] MSBuild version 17.7.0-preview-23221-02+ac3f5ad89 for .NET
[]   Determining projects to restore...
[]   Restored /root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj (in 341 ms).
[]   1 of 2 projects are up-to-date for restore.
[] /root/helix/work/workitem/e/dotnet-latest/sdk/8.0.100-preview.4.23224.16/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(287,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]   RazorClassLibrary -> /root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/RazorClassLibrary/bin/Release/net8.0/RazorClassLibrary.dll
[] /root/helix/work/workitem/e/wbt/nuget/blz_razor_lib_top_youwyvwp.vdm/microsoft.net.sdk.webassembly.pack/8.0.0-preview.4.23224.2/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(314,5): error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project. [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]
[] Build FAILED.
[]
[] /root/helix/work/workitem/e/wbt/nuget/blz_razor_lib_top_youwyvwp.vdm/microsoft.net.sdk.webassembly.pack/8.0.0-preview.4.23224.2/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(314,5): error BLAZORSDK1001: Unable to find 'RazorClassLibrary.dll' to be lazy loaded later. Confirm that project or package references are included and the reference is used in the project. [/root/helix/work/workitem/e/wbt/blz_razor_lib_top_youwyvwp.vdm/wasm/wasm.csproj]
[]     0 Warning(s)
[]     1 Error(s)
[]
[] Time Elapsed 00:00:15.07
[]
[] Workload updates are available. Run dotnet workload list for more information.
   at Wasm.Build.Tests.CommandResult.EnsureExitCode(Int32 expectedExitCode, String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 44
   at Wasm.Build.Tests.CommandResult.EnsureSuccessful(String messagePrefix, Boolean suppressOutput) in /_/src/mono/wasm/Wasm.Build.Tests/Common/CommandResult.cs:line 28
   at Wasm.Build.Tests.BuildTestBase.BlazorBuildInternal(String id, String config, Boolean publish, Boolean setWasmDevel, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 601
   at Wasm.Build.Tests.BuildTestBase.BlazorBuild(BlazorBuildOptions options, String[] extraArgs) in /_/src/mono/wasm/Wasm.Build.Tests/BuildTestBase.cs:line 543
   at Wasm.Build.Tests.Blazor.BuildPublishTests.BugRegression_60479_WithRazorClassLib() in /_/src/mono/wasm/Wasm.Build.Tests/Blazor/BuildPublishTests.cs:line 208
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Error Message

Fill the error message using known issues guidance.

{
  "ErrorMessage": "Unable to find 'RazorClassLibrary.dll' to be lazy loaded later.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": false
}
Author: sbomer
Assignees: maraf
Labels:

arch-wasm, disabled-test, area-Build-mono

Milestone: 8.0.0

@radical
Copy link
Member

radical commented May 2, 2023

@maraf this seems like a regression. Do we know what is causing this?

@maraf
Copy link
Member

maraf commented May 2, 2023

@maraf this seems like a regression. Do we know what is causing this?

It is webcil specific. Previously blazor ignored the setting.

Fixed in #85335. Now waiting to flow to installer (which probably already happened, just didn't checked yet)

radical added a commit to radical/runtime that referenced this issue May 2, 2023
.. and fix test to work for non-webcil case.

Fixes issue: dotnet#85354
@radical
Copy link
Member

radical commented May 2, 2023

Opened #85685 to re-enable the test.

@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label May 2, 2023
radical added a commit that referenced this issue May 3, 2023
.. and fix test to work for non-webcil case.

Fixes issue: #85354
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label May 3, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Jun 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono disabled-test The test is disabled in source code against the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants