Steamworks.NET icon indicating copy to clipboard operation
Steamworks.NET copied to clipboard

"Referenced assembly targets a different processor" warning when compiling game for 32-bit processors

Open waltdestler opened this issue 3 years ago • 1 comments

I have a .NET 6 game that is using the Steamworks.NET Nuget package version 20.1.0. When I build my game for 32-bit processors, I get the following warning:

CSC : warning CS8012: Referenced assembly 'Steamworks.NET, Version=20.1.0.0, Culture=neutral, PublicKeyToken=null' targets a different processor.

Does the Nuget package only support 64-bit? Can it be made to support 32-bit as well?

waltdestler avatar Apr 05 '22 01:04 waltdestler

And when trying to actually run under a 32-bit CPU, I get this runtime error:

Exception Info: System.IO.FileLoadException: Could not load file or assembly 'Steamworks.NET, Version=20.1.0.0, Culture=neutral, PublicKeyToken=null'. The located assembly's manifest definition does not match the assembly reference. (0x80131040)

waltdestler avatar Apr 05 '22 01:04 waltdestler