question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[blazor] Remove reference to BINDING api in global namespace

See original GitHub issue

The blazor hotreload feature expects BINDING api to be exported to global namespace in the https://github.com/dotnet/sdk/blob/main/src/BuiltInTools/BrowserRefresh/BlazorHotReload.js.

The https://github.com/dotnet/aspnetcore/pull/46693 rewrote the invoke as a JSImport and with that we can call directly the async function receiveHotReloadAsync.

With the resolution of this issue we can remove disableDotnet6Compatibility: false from https://github.com/maraf/aspnetcore/blob/99a1d2c0cb39cbddb0e771d76c15fa96cae46261/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts#L347

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
pavelsavaracommented, Apr 25, 2023

disableDotnet6Compatibility: false is there also for 3rd party code which uses those global objects. Let’s flip it together with legacy interop when we link it out by default in the next major version (Net9).

0reactions
pavelsavaracommented, Apr 25, 2023

Confirmed, this is not necessary to be fixed in preview4.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ASP.NET Core Blazor globalization and localization
This article explains how to render globalized and localized content to users in different cultures and languages. For globalization, Blazor ...
Read more >
Call a web API from an ASP.NET Core Blazor app
This article describes how to call a web API from a Blazor app. Note. The code examples in this article adopt nullable reference...
Read more >
Blazor regression in 7.0.302 SDK · Issue #8718 · dotnet/razor
error CS0400: The type or namespace name 'InputComponent' could not be found in the global namespace (are you missing an assembly reference?)
Read more >
c# - How to remove unused using namespaces
Yes you can right click on the page and from the menu select; Organise Usings > Remove Unused Usings. Alternatively if you prefer...
Read more >
Designer does not recognize referenced namespaces
It seems that it fails to recognize anything from the Global project. In column binding, for example, it can't find the class properties, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found