0 votes

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:

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

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=1.0.0.0

Any help is appreciated, thanks.

Godot version v3.3.3-stable.mono.official
in Engine by (56 points)
edited by

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

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.

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.