Search code examples
visual-studioasp.net-coreblazorblazor-server-side

Inconsistencies after Visual Studio Version 17.12.3 with Blazor program Error RZ9991, Error RZ10012


After upgrading to Visual Studio 17.12.3, code is generating errors in Blazor program targeting .NET 8 that were not present before upgrade. In addition, the errors are not present in Release mode, but when I switch to debug, the errors and warnings appear. Furthermore, switching back to Release mode does not make them disappear. The following are snaps from Release, then debug mode.

Release

Release

Debug

Debug

An example of code generating errors:

enter image description here

Another example

enter image description here


Solution

  • The first problem - your using BlazoredTypeAhead. It's basically obsolete. It probably has some edge condition code that the Razor pre-compiler doesn't like. See the info below. The bind code has changed a little since then. I remember having a few issues with my own components.

    You either need to pull the repo and do your own fixes, or move to something else.

    The second problem - what's the provenance of DataRangePicker? Probably similar issues to above.

    BlazoredTypeAhead

    The Github Repo has this information:

    enter image description here

    The Nuget Package Information is as follows:

    enter image description here

    So last updated in 2022 and on Net6.