The folder %temp%\.net
is needed because we are using native libraries (in our case the WebView2 component) in a single file deployment.
This folder is used to extract the native libraries from the single executable and load them into memory. More information on this can be found here: (Single-file deployment | Native libraries)[https://learn.microsoft.com/en-us/dotnet/core/deploying/single-file/overview?tabs=cli#native-libraries].