Compiler warning in VS2017
Posted: Tue Apr 21, 2020 2:39 pm
Hello,
when compiling source code which is referencing SimConnect.dll (*1) from v5 SDK I'm getting the following compiler warning:
------------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\
Bin\Microsoft.Common.CurrentVersion.targets(2110,5):
warning MSB3270: There was a mismatch between the processor architecture of
the project being built "MSIL" and the processor architecture of the reference
"LockheedMartin.Prepar3D.SimConnect", "AMD64".
This mismatch may cause runtime failures. Please consider changing the targeted
processor architecture of your project through the Configuration Manager so as to align
the processor architectures between your project and references, or take a dependency
on references with a processor architecture that matches the targeted processor
architecture of your project.
------------
I guess that the fixed processor architecture AMD64 should be replaced by "any CPU"?
(*1)
C:\Program Files\Lockheed Martin\Prepar3D v5 SDK 5.0.21.34709\lib\SimConnect\managed\LockheedMartin.Prepar3D.SimConnect.dll
when compiling source code which is referencing SimConnect.dll (*1) from v5 SDK I'm getting the following compiler warning:
------------
2>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\
Bin\Microsoft.Common.CurrentVersion.targets(2110,5):
warning MSB3270: There was a mismatch between the processor architecture of
the project being built "MSIL" and the processor architecture of the reference
"LockheedMartin.Prepar3D.SimConnect", "AMD64".
This mismatch may cause runtime failures. Please consider changing the targeted
processor architecture of your project through the Configuration Manager so as to align
the processor architectures between your project and references, or take a dependency
on references with a processor architecture that matches the targeted processor
architecture of your project.
------------
I guess that the fixed processor architecture AMD64 should be replaced by "any CPU"?
(*1)
C:\Program Files\Lockheed Martin\Prepar3D v5 SDK 5.0.21.34709\lib\SimConnect\managed\LockheedMartin.Prepar3D.SimConnect.dll