Missing dependency after HTML5 export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By mburkard

I’m working on a Godot Mono project on Linux (Pop!_OS 21.04).
I have System.Net.Http listed as a dependency in my csproj file:

  <PackageReference Include="System.Net.Http" Version="4.3.4" />

Everything works fine when I run through the editor and when I export to Linux.
But when I export to HTML5 and run in the browser I get the following error:

System.IO.FileNotFoundException: Could not load file or assembly 'WebAssembly.Net.Http, Version=

Any help is appreciated, thanks.

Are your using this System.Net.Http for some sort of multiplayer thing

AmpereNinja | 2021-09-06 16:22

The situation I described is actually a bit simplified. Really System.Net.Http is a dependency of another dependency I’m using.

I’m working on an application that has this dependency as a part of an sdk that talks to a server.

mburkard | 2021-09-06 20:36

Maybe Godot has some issues handling these dependencies since your trying to export to the web and exporting your game to the web requires your scripts to be complied to WebAssembly. You can try creating a GitHub issue at the official Godot Repository.

AmpereNinja | 2021-09-09 00:18