I am using GodotSharp 3.2.3.
The project runs in the editor, but when I export my project for Windows using MSBuild (VS Build Tools)
, a .exe is produced; upon running it I get the error: The assembly 'GodotSharp' is out of sync.
When setting up my project, I followed the steps here to set up Godot C# for Windows.
I'm using VS Code as my external editor. My .csproj file looks like this:
<Project Sdk="Godot.NET.Sdk/3.2.3">
<PropertyGroup>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<TargetFramework>net472</TargetFramework>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="GodotSharp" Version="3.2.3" />
</ItemGroup>
</Project>
So far I've tried:
- Deleting and re-creating my .csproj files
- Deleting the .mono directory and letting it rebuild
- Exporting to a different folder location
The full error I see in my log file is:
**ERROR**: The assembly 'GodotSharp' is out of sync.
At: modules/mono/mono_gd/gd_mono.cpp:954:_load_api_assemblies() - The assembly 'GodotSharp' is out of sync.
**ERROR**: FATAL: Method failed.
At: modules/mono/mono_gd/gd_mono.cpp:965:_load_api_assemblies() - FATAL: Method failed.
What does it mean that an assembly is 'out of sync?' How can I produce an exported .exe that runs successfully?