Hello All, I have my own solution that builds a .dll (mytest.dll). I then pack the .dll for referencing into a nuget package using a .nuspec file. When doing this process on my laptop, I can install the nuget into a test app and create objects from the nuget in the code no problem.
Testing on my build machine, which is Windows Server 2012 R2, I do this same process but after installing the nuget and trying to run my test app I get a runtime exception:
System.BadImageFormatException: 'Could not load file or assembly 'mytest.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)'
Any ideas on what to check on the Windows Server machine? Note: 1. Both machines have Visual Studio 2019 used to build 2. I use nuget.exe from the command line to pack the nuget (nuget update --self before packing)