Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Client program.cs is never executed when creating Blazor WebAssembly apps in .net 8

$
0
0

I am trying to convert a .net 7 Blazor WebAssembly app over to .net 8 but the code inside of the program.cs file (on the client side) never gets run. Consequently, absolutely nothing works. I can't even inject a dependency somewhere because I cant register it in the first place.

This isn't just happening in the app I'm trying to convert either. Creating a new project also has the problem. Here is an example project that contains the issue:

https://github.com/SIBUK/BlazorBug

If you compile and run the app then click on the Counter link it will immediately crash because it tries to inject 'AppService' but it cant do for the reason outlined above.

What is going on here?


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>