All Questions
Tagged with webassembly c#
259
questions
-1
votes
0
answers
34
views
C# Webassambly with Angular 16
I created a project using C# where I used the following settings:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<...
0
votes
0
answers
25
views
blazor wasm: Nuget package inheritance
Is it possible to create a nuget package of a Blazor WASM standalone that has some generic logic inside of it like; authentication, dependency injection etca. That way when I make a package of it and ...
0
votes
0
answers
30
views
Split Blazor RenderFragment into a list of RenderFragments
Is it possible to split a RenderFragment into a list of RenderFragments seperated by the parent nodes?
Lets say I have a RenderFragement (without parameters) like this:
<label><InputText />...
0
votes
0
answers
37
views
Debug .net 8 browser-wasm hosted in ASP.NET MVC on IIS
I have an old ASP.NET MVC app with .NET Framework 4.8 hosted on IIS and I am trying to add some client side logic in C# with WASM in .net 8. I already have a big logic written in C# and would like to ...
1
vote
1
answer
168
views
efficiently painting to a canvas from WASM
I am using the new .NET 8 "WebAssembly Browser App" project template (not Blazor) to try and make a small game engine.
One of the things I need to do is paint to a canvas as fast as possible....
0
votes
0
answers
90
views
Blazor .Net 8 auto rendering and Mediatr
I have recently started a new Blazor web project with .net 8 and autorendering (SSR, Server and WebAssembly) and Clean Architecture.
For the moment, I'm still using the architecture of the original ...
1
vote
1
answer
204
views
MudBlazor - MudDataGrid - Default FilterDefinitions do not allow the user to modify the base filters
I'm trying to achieve a way to display a default set of filters into the MudDataGrid Component.
But I would like the user be able to see the filters and have a chance to clear the pre-set filters.
...
0
votes
1
answer
107
views
How to stop HttpClient/browser from requesting Client Certificate in Blazor Wasm
When calling an API on our APIM from Blazor WASM using a HTTP client, the user is asked to select a client certificate. we don't need this extra authenticaton method since this method is secured by a ...
0
votes
2
answers
141
views
Method not being called when button is pressed?
I am just trying to create a simple application that when a button is pressed, it will take a piece of text and replace a certain string with another string. For some reason when my "Replace"...
0
votes
0
answers
143
views
C# WASM Encryption/Decryption using JS Interop error: Unhandled exception rendering component
I'm having some issues when I try to decrypt a string in c# wasm using js interop. I'm new to encryption/decryption so I am unsure of what the error is actually saying. I have stepped through my code ...
1
vote
1
answer
92
views
Why is using an interface implementation with generics in .NET 7 so slow in WebAssembly?
The following method runs pretty fast on the browser when compiled to WebAssembly (WASM):
public static int SumInt(int[] vals)
{
int sum = default;
for (int i = 0; i < vals.Length; i++)
...
0
votes
0
answers
110
views
Why is using a lambda with generics in .NET 7 so slow in WebAssembly?
The following method runs pretty fast in WebAssembly (WASM):
public static int SumInt(int[] vals)
{
int sum = default;
for (int i = 0; i < vals.Length; i++)
sum += vals[i];
...
0
votes
1
answer
388
views
How to disable Content-Security-Policy my .net wasm app
I have .net 7 blazor wasm application (client + server) I constantly see errors in my web browser like this :
Because of these issues, I probably can't debug my client side application from Visual ...
3
votes
1
answer
947
views
Possible to create plain WASM module with .NET 8
I would like to write some of my application logic in C# and be able to update (sideload) it after deploying the host application. Since WASM support has further improved with .NET 8, I considered to ...
0
votes
0
answers
78
views
How to add Cookie to Avalonia Web Assembly
I have been looking for a way to save data in Avalonia Web Assembly for a long time. Writing to a file does not work, because it is only created temporarily and is also gone after the end of the ...