Repository: godot
Issue: ERROR: Mono: Core API hash mismatch.
Labels: bug,platform:linuxbsd,needs testing,topic:dotnet,topic:export

### Godot version

v3.4.beta4.mono.official [6a058cbf3]

### System information

Debian 11

### Issue description

During  execution of an exported project in linux I have some errors:

In godot console during export process:

```
--- Debugging process stopped ---
 Cannot load assembly (refonly): 'Dapper.Contrib'.
 Cannot load one of the dependencies for the assembly: 'GodotUtilities'.

```

in execution project in different folder - where I added other files requested from godot logged in red:

```
(base) vale@debianace:~/Desktop/DesertEdgeTest/test$ ./desert_edge_sharp.x86_64 
Godot Engine v3.4.beta4.mono.official.6a058cbf3 - https://godotengine.org
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) HD Graphics 4000 (IVB GT2)
OpenGL ES Batching: ON
 
ERROR: Mono: Core API hash mismatch.
   at: _init_godot_api_hashes (modules/mono/mono_gd/gd_mono.cpp:490)
Mono: Log file is: '/home/vale/.local/share/godot/app_userdata/Client/mono/mono_logs/2021-08-30_14.08.38_441694.log'
(441694) 14:08:39.176  :DEBUG	Setup[Void _Ready()] 
(441694) 14:08:39.189  :DEBUG	Main[Void _Ready()] 

```

```
Unhandled Exception:
System.TypeInitializationException: The type initializer for 'Sys' threw an exception. ---> System.DllNotFoundException: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () [0x00000] in <2606d1e3191f45969af1cc6149da86d0>:0 
   --- End of inner exception stack trace ---
  at System.Number.DoubleToNumber (System.Double value, System.Int32 precision, System.Number+NumberBuffer& number) [0x000b2] in <2606d1e3191f45969af1cc6149da86d0>:0 
  at System.Number.FormatSingle (System.Text.ValueStringBuilder& sb, System.Single value, System.ReadOnlySpan`1[T] format, System.Globalization.NumberFormatInfo info) [0x000d1] in <2606d1e3191f45969af1cc6149da86d0>:0 
  at System.Number.FormatSingle (System.Single value, System.String format, System.Globalization.NumberFormatInfo info) [0x0001e] in <2606d1e3191f45969af1cc6149da86d0>:0 
  at System.Single.ToString () [0x00008] in <2606d1e3191f45969af1cc6149da86d0>:0 
  at Godot.Vector2.ToString () [0x00001] in <bde67218aec4446f97aac988b2b6561a>:0 
  at Godot.Rect2.ToString () [0x00001] in <bde67218aec4446f97aac988b2b6561a>:0 
  at Godot.GD+<>c.<GetPrintParams>b__5_0 (System.Object x) [0x00006] in <bde67218aec4446f97aac988b2b6561a>:0 
  at System.Array.ConvertAll[TInput,TOutput] (TInput[] array, System.Converter`2[TInput,TOutput] converter) [0x00029] in <2606d1e3191f45969af1cc6149da86d0>:0 
  at Godot.GD.GetPrintParams (System.Object[] parameters) [0x0001d] in <bde67218aec4446f97aac988b2b6561a>:0 
  at Godot.GD.Print (System.Object[] what) [0x00001] in <bde67218aec4446f97aac988b2b6561a>:0 
  at DesertEdge.Utils.Log.PrintMessage (System.String postfix, System.Object[] messages) [0x00079] in <10dcab3046b147588e626d3232b86983>:0 
  at DesertEdge.Utils.Log.Print (System.String level, System.Object[] messages) [0x00167] in <10dcab3046b147588e626d3232b86983>:0 
  at DesertEdge.Ground._Ready () [0x00014] in <1d40de5ef8f9417aaf3f89dd1eb92f69>:0 
  at (wrapper managed-to-native) Godot.NativeCalls.godot_icall_2_438(intptr,intptr,intptr,bool)
  at Godot.Node.AddChild (Godot.Node node, System.Boolean legibleUniqueName) [0x00012] in <bde67218aec4446f97aac988b2b6561a>:0 
  at DesertEdge.Main.ShowBorderland () [0x0004e] in <1d40de5ef8f9417aaf3f89dd1eb92f69>:0 
  at (wrapper managed-to-native) Godot.NativeCalls.godot_icall_2_537(intptr,intptr,string,object[])
  at Godot.Object.Call (System.String method, System.Object[] args) [0x0000c] in <bde67218aec4446f97aac988b2b6561a>:0 
  at DesertEdge.Singleton.Setup.PreStartLevel () [0x00020] in <1d40de5ef8f9417aaf3f89dd1eb92f69>:0 

```

project csprj:

```
<Project Sdk="Godot.NET.Sdk/3.3.0">
  <PropertyGroup>
    <TargetFramework>net472</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <Reference Include="GodotUtilities">
      <HintPath>..\Utils\Utils\bin\Debug\netstandard2.0\GodotUtilities.dll</HintPath>
    </Reference>
  </ItemGroup>
</Project>
```

dll csproj:

```
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="GodotSharp">
      <HintPath>\home\vale\Downloads\godot_mono\Godot_v3.2.3-stable_mono_x11_64\GodotSharp\Api\Debug\GodotSharp.dll</HintPath>
    </Reference>
    <PackageReference Include="CsvHelper" Version="27.1.1"/>
    <PackageReference Include="Dapper" Version="2.0.78"/>
    <PackageReference Include="Dapper.Contrib" Version="2.0.78"/>
  </ItemGroup>
</Project>
```


I saw other similar issues but they are closed.
Its something related to how I have to export?
In project folder the project work without problems.


### Steps to reproduce

Export a project in linux and run it outside project folder.

### Minimal reproduction project

NA atm.