-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Including a NativeFileReference causes a Blazor error in Release mode #39825
Comments
I did try |
I also tried -s ERROR_ON_UNDEFINED_SYMBOLS=0 in emcc-default.rsp as per issue #39528 |
@genifycom thanks for contacting us. @SteveSandersonMS do you have any thoughts? |
I definitely published the BlazeOrbital demo and verified it works, both with and without AOT compilation, since I was collecting stats on the resulting app size - these numbers were in one of the presentation slides. I didn't encounter any such error. @genifycom Perhaps there is some configuration difference between your app and the BlazeOrbital demo app. If you can provide a minimal repro case for the fault you're seeing (as a GitHub repo), we'd be able to investigate. |
I also tried following the repro steps exactly as given above, on .NET 6.0.1, and didn't encounter any error. |
Hi @genifycom. We have added the "Needs: Author Feedback" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. See our Issue Management Policies for more information. |
@SteveSandersonMS Here is a sample repo using Sqlite and EFCore and this errors out when publishing the blazor wasm app. Please can you assist? |
@fingers10 Could you please confirm whether you've tried to publish the https://github.com/SteveSandersonMS/BlazeOrbital sample, and whether this issue also reproduces for you in that project? If so, please specify what steps you're following to publish the project, and what error you get. Thanks! |
@SteveSandersonMS, I tried with BlazeOrbital and I'm able to publish it. But not with the minimal sample repo using Sqlite and EfCore. When I publish I get the following Error. Publish Output Logs
Diagnostic Log Details
I'm using Visual Studio 2022 running on Windows 11. dotnet --info.NET SDK (reflecting any global.json): Version: 6.0.200 Commit: 4c30de7899Runtime Environment: Host (useful for support): .NET SDKs installed: .NET runtimes installed: To install additional .NET runtimes or SDKs: Please assist on what I'm missing. It would also be great If you could write/share the steps on how to generate
Do we need to install any additional workload? Please assist. This could help many out there. |
@fingers10 The main differences I can see between your app and the BlazeOrbital sample are:
One or both of these is probably responsible for the difference. However the good news is you don't need to bundle your own e_sqlite3.o file any more and mess with these low-level details, since support is now built into SQLite's NuGet package: https://twitter.com/bricelambs/status/1491134363945570305. Could you try using those packages? Thanks! |
@SteveSandersonMS I tried using Project FIle: <Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.2" />
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version="6.0.2" PrivateAssets="all" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.2" />
<PackageReference Include="SQLitePCLRaw.bundle_e_sqlite3" Version="2.1.0-pre20220207221914" />
</ItemGroup>
<!--<ItemGroup>
<NativeFileReference Include="Data\e_sqlite3.o" />
</ItemGroup>-->
</Project> Diagnostic Log[1D00:071C][2021-11-21T14:21:06]i001: Burn v3.10.4.4718, Windows v10.0 (Build 22000: Service Pack 0), path: C:\Windows\Temp\{AA2CFFB3-2680-45AB-89E0-7D3A9DF09CBD}\.cr\VC_redist.x64.exe [1D00:071C][2021-11-21T14:21:06]i009: Command Line: '-burn.clean.room=C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.30.30704,chip=x64\VC_redist.x64.exe -burn.filehandle.attached=696 -burn.filehandle.self=540 /q /norestart /log C:\Users\Abdul Rahman\AppData\Local\Temp\dd_setup_20211121142023_019_Microsoft.VisualCpp.Redist.14.Latest.log' [1D00:071C][2021-11-21T14:21:06]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.30.30704,chip=x64\VC_redist.x64.exe' [1D00:071C][2021-11-21T14:21:06]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.30.30704,chip=x64\' [1D00:071C][2021-11-21T14:21:06]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Abdul' [1D00:071C][2021-11-21T14:21:06]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation' [1D00:2CC4][2021-11-21T14:21:06]i000: Setting version variable 'WixBundleFileVersion' to value '14.30.30704.0' [1D00:071C][2021-11-21T14:21:06]i100: Detect begin, 11 packages [1D00:071C][2021-11-21T14:21:06]i000: Setting string variable 'Arm64_Check' to value 'AMD64' [1D00:071C][2021-11-21T14:21:06]i000: Setting version variable 'windows_uCRT_DetectKey' to value '10.0.22000.1' [1D00:071C][2021-11-21T14:21:06]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 1 [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows81_x86, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows81_x64, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows8_x86, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows8_x64, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i101: Detected package: vcRuntimeMinimum_x64, state: Present, cached: Complete [1D00:071C][2021-11-21T14:21:06]i101: Detected package: vcRuntimeAdditional_x64, state: Present, cached: Complete [1D00:071C][2021-11-21T14:21:06]i101: Detected package: vcRuntime_arm64, state: Absent, cached: None [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT >= v6.1 OR (VersionNT = v6.0 AND ServicePackLevel >= 2)' evaluates to true. [1D00:071C][2021-11-21T14:21:06]i199: Detect complete, result: 0x0 [1D00:071C][2021-11-21T14:21:06]i200: Plan begin, 11 packages, action: Modify [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.3 AND NOT VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows81_x86 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.3 AND VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows81_x64 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.2 AND NOT VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows8_x86 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.2 AND VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows8_x64 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.1 AND NOT VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x86 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.1 AND VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x64 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.0 AND NOT VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x86 [1D00:071C][2021-11-21T14:21:06]i052: Condition 'VersionNT = v6.0 AND VersionNT64' evaluates to false. [1D00:071C][2021-11-21T14:21:06]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x64 [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT64) AND NOT (Arm64_Check = "ARM64")' evaluates to true. [1D00:071C][2021-11-21T14:21:06]i052: Condition '(VersionNT64) AND NOT (Arm64_Check = "ARM64")' evaluates to true. [1D00:071C][2021-11-21T14:21:06]i052: Condition 'Arm64_Check = "ARM64"' evaluates to false. [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows81_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows81_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows8_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows8_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows7_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: Windows7_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: WindowsVista_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: WindowsVista_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i201: Planned package: vcRuntimeMinimum_x64, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register [1D00:071C][2021-11-21T14:21:06]i201: Planned package: vcRuntimeAdditional_x64, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register [1D00:071C][2021-11-21T14:21:06]i201: Planned package: vcRuntime_arm64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None [1D00:071C][2021-11-21T14:21:06]i299: Plan complete, result: 0x0 [1D00:071C][2021-11-21T14:21:06]i300: Apply begin [1D00:071C][2021-11-21T14:21:06]i010: Launching elevated engine process. [1D00:071C][2021-11-21T14:21:06]i011: Launched elevated engine process. [1D00:071C][2021-11-21T14:21:06]i012: Connected to elevated engine. [2D10:1F98][2021-11-21T14:21:06]i358: Pausing automatic updates. [2D10:1F98][2021-11-21T14:21:06]i359: Paused automatic updates. [2D10:1F98][2021-11-21T14:21:06]i360: Creating a system restore point. [2D10:1F98][2021-11-21T14:21:06]w363: Could not create system restore point, error: 0x80070422. Continuing... [2D10:1F98][2021-11-21T14:21:06]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{57a73df6-4ba9-4c1d-bbbb-517289ff6c13}, resume: Active, restart initiated: No, disable resume: No [2D10:1F98][2021-11-21T14:21:06]i325: Registering dependency: {57a73df6-4ba9-4c1d-bbbb-517289ff6c13} on package provider: Microsoft.VS.VC_RuntimeMinimumVSU_amd64,v14, package: vcRuntimeMinimum_x64 [2D10:1F98][2021-11-21T14:21:06]i325: Registering dependency: {57a73df6-4ba9-4c1d-bbbb-517289ff6c13} on package provider: Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14, package: vcRuntimeAdditional_x64 [2D10:1F98][2021-11-21T14:21:06]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{57a73df6-4ba9-4c1d-bbbb-517289ff6c13}, resume: ARP, restart: None, disable resume: No [2D10:1F98][2021-11-21T14:21:06]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{57a73df6-4ba9-4c1d-bbbb-517289ff6c13}, resume: ARP, restart initiated: No, disable resume: No [1D00:071C][2021-11-21T14:21:06]i399: Apply complete, result: 0x0, restart: None, ba requested restart: No [1D00:071C][2021-11-21T14:21:06]i500: Shutting down, exit code: 0x0 [1D00:071C][2021-11-21T14:21:06]i410: Variable: Arm64_Check = AMD64 [1D00:071C][2021-11-21T14:21:06]i410: Variable: SystemFolder = C:\Windows\system32\ [1D00:071C][2021-11-21T14:21:06]i410: Variable: VersionNT = 10.0.0.0 [1D00:071C][2021-11-21T14:21:06]i410: Variable: VersionNT64 = 10.0.0.0 [1D00:071C][2021-11-21T14:21:06]i410: Variable: windows_uCRT_DetectKey = 10.0.22000.1 [1D00:071C][2021-11-21T14:21:06]i410: Variable: windows_uCRT_DetectKeyExists = 1 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleAction = 6 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleElevated = 1 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleFileVersion = 14.30.30704.0 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleInstalled = 1 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleLog = C:\Users\Abdul [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleManufacturer = Microsoft Corporation [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleName = Microsoft Visual C++ 2015-2022 Redistributable (x64) - 14.30.30704 [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleOriginalSource = C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.30.30704,chip=x64\VC_redist.x64.exe [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleOriginalSourceFolder = C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.30.30704,chip=x64\ [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleProviderKey = VC,redist.x64,amd64,14.30,bundle [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleSourceProcessFolder = C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.30.30704,chip=x64\ [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleSourceProcessPath = C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.30.30704,chip=x64\VC_redist.x64.exe [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleTag = [1D00:071C][2021-11-21T14:21:06]i410: Variable: WixBundleVersion = 14.30.30704.0 [1D00:071C][2021-11-21T14:21:06]i007: Exit code: 0x0, restarting: NoPublish Output LogBuild started... Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink 2>Build failed. Check the Output window for more details. Am I still having any wrong configuration or workload missing in my machine or defining own NativeMethods signatures is the only workaround available now? If that's the workaround then all methods in that file needs to be added? i.e I need to add a copy of that file in my project? |
If you're using the packages that @bricelam is tweeting about, it shouldn't be necessary to add your own NativeMethods definitions. @bricelam, do you have any thoughts on why this might be failing? Are there instructions anywhere for using SQLite from Blazor WebAssembly since you published those preview packages? |
@fingers10 I managed to get it to work after updating to use
|
Adding, <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EmccExtraLDFlags>-s WARN_ON_UNDEFINED_SYMBOLS=0</EmccExtraLDFlags> makes publish to succeed but bring a runtime exception,
Console Error Logcrit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] |
@fingers10 yes I encountered that too, but that's a different issue. :P This is the parent issue dotnet/efcore#26288, and a temporary fix can be found here dotnet/efcore#26860. I managed to resolve it by adding this to my codebase, based on the issue above. |
@Zhiyuan-Amos many thanks.. that helped. @SteveSandersonMS Many thanks for your support. Now I'm able to publish and run with the @bricelam, @SteveSandersonMS Any inputs on fixing this in near future? |
@SteveSandersonMS we don't |
e_sqlite3.a gets statically linked directly to into dotnet.wasm on build. So no, the .a file won't get published. |
@bricelam , many thanks for your inputs. As of now sqlite in blazor fails on publish. The following flags are added as workaround. <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<EmccExtraLDFlags>-s WARN_ON_UNDEFINED_SYMBOLS=0</EmccExtraLDFlags> Is it something that will be fixed on upcoming releases? |
@ericsink It looks like it's complaining about not finding |
Or is this something that should be added to stubs.c? |
The iOS builds use Anyway, it looks like there is no special TFM for Wasm? If we had something like Adding it to stubs.c is another approach that should work fine. |
Wait -- the stubs.c approach is a little more subtle than that. I'm looking more closely at that approach... |
Yeah, we can do the stubs.c thing for sqlite3_win32_set_directory and wasm. We just need to be sure that stub is only included for wasm so it doesn't clash with the real implementation from sqlite itself. Either a separate wasm-only stubs file or inside the existing stubs.c with an ifdef. Let me know if you want me to make this change, as opposed to trying to find a way of solving it at the provider/TFM level. |
NuGet lets you override managed assemblies for a specific RID. The nupkg would look something like this:
|
(Edited previous comment. Posted too soon.) |
The RID-specific assembly is more work, but would probably be the better option. We could even reverse it and make the one with |
I think that would look something like this:
|
This may allow iOS to not require a separate provider. |
I'll take a closer look at the RID-specific lib approach. Unfortunately, I recently changed those providers to use csproj-style "dotnet pack generates the nuspec from the csproj" instead of a nuspec file, because it seems like that's the direction they want everyone to go. But unless there is a way to do these RID-specific assemblies in csproj (which I doubt), I'll need to go backward on that. |
(Pretty sure iOS will always need that special provider anyway, because it does the |
Hello @SteveSandersonMS, I tried updating my Blazor Wasm app to run .NET 7 Preview 2 with both
(this is probably the wrong thread for me to ask you this, please feel free to direct me to a more appropriate place for further discussion, thank you!) |
@Zhiyuan-Amos It looks like this is due to a change in the runtime. Would you mind filing an issue at https://github.com/dotnet/runtime, indicating clearly that this is related to WebAssembly? @lewing Not sure if it's intentional to remove the |
@SteveSandersonMS the issue has been resolved following dotnet/runtime#67290 (comment), fyi :) |
Is there an existing issue for this?
Describe the bug
Create a default Blazor WebAssembly App project. Configure for HTTPS only.
This project runs successfully in both Debug and Release mode.
Now add a Folder Data and place in there the e_sqlite3.o file from Steve Sandersons demo.
Add to the Project file the line in Item Group
<NativeFileReference Include="Data\e_sqlite3.o" />
Now the project will run in Debug mode, but in Release mode it gets an error as follows:
blazor.webassembly.js:1 Assertion failed: Cannot call unknown function mono_wasm_set_is_debugger_attached, make sure it is exported
This means that we cannot use Hot Release (currently only runs in Release mode) with a native file.
Expected Behavior
Native Files should be useable in both Debug and Release mode.
Steps To Reproduce
Described above
Exceptions (if any)
blazor.webassembly.js:1 Assertion failed: Cannot call unknown function mono_wasm_set_is_debugger_attached, make sure it is exported
.NET Version
Anything else?
.NET SDK (reflecting any global.json):
Version: 6.0.101
Commit: ef49f6213a
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19043
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\6.0.101\
Host (useful for support):
Version: 6.0.1
Commit: 3a25a7f1cc
.NET SDKs installed:
3.1.406 [C:\Program Files\dotnet\sdk]
5.0.103 [C:\Program Files\dotnet\sdk]
5.0.202 [C:\Program Files\dotnet\sdk]
5.0.300 [C:\Program Files\dotnet\sdk]
5.0.301 [C:\Program Files\dotnet\sdk]
6.0.100 [C:\Program Files\dotnet\sdk]
6.0.101 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.12 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 3.1.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 5.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.0 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft Visual Studio Community 2022 (64-bit)
Version 17.0.5
The text was updated successfully, but these errors were encountered: