I'm trying to create an installation from scratch using Visual Studio 2019 for a old project (it builds) Every time I try to build, I get the
Error: WARNING: File ' something.dll' targeting 'x64' is not compatible with the project's target platform 'x86'.
I am able to use VS2019 to build the old project though. how can I take to resolve this problem?
Resolution:
Source https://userapps.support.sap.com/sap/support/knowledge/en/1548930
You need to be targeting 64-bit (x64 / AMD64) platform for your project build, as one of your components - something.dll - is 64-bit.
To configure a project to target a 64-bit platform
On the menu bar, choose Build > Configuration Manager.
In the Active solution platform list, choose a 64-bit platform for the solution to target, and then choose the Close button.
More details https://learn.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2022
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With