Home › Forums › Software Development › [Solved] BadImageFormatException: › Reply To: [Solved] BadImageFormatException:
10/08/2017 at 14:00 #7259

Keymaster
Hi @ysato, could you please report the file size of Tobii.EyeX.Client.dll in each output folder?
64-bit version should be of size 1275kB, otherwise it is 849kB.
Please also confirm if the following lines appear in the .csproj-file:
<Import Project="..\..\packages\Tobii.Interaction.0.7.3\build\Tobii.Interaction.targets" Condition="Exists('..\..\packages\Tobii.Interaction.0.7.3\build\Tobii.Interaction.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\..\packages\Tobii.Interaction.0.7.3\build\Tobii.Interaction.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\..\packages\Tobii.Interaction.0.7.3\build\Tobii.Interaction.targets'))" />
</Target>
Can you also kindly try to rebuild the project from scratch to make sure the correct files are copied?