Whenever I build my project, I get this warning:
1>------ Build started: Project: NinjaTrader.Custom, Configuration: Debug x64 ------
1>C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\amd64\Mi crosoft.Common.CurrentVersion.targets(2413,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "AMD64" and the processor architecture of the reference "PresentationCore", "x86". 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.
This warning goes away if I change these project file lines:
<Reference Include="PresentationCore">
<HintPath>C:\Windows\Microsoft.NET\Framework\v4. 0. 30319\WPF\PresentationCore.dll</HintPath>
</Reference>
to these lines:
<Reference Include="PresentationCore">
<HintPath>C:\Windows\Microsoft.NET\Framework64\v 4. 0.30319\WPF\PresentationCore.dll</HintPath>
</Reference>
which point to the Framework64 directory rather than the Framework directory.
However, whenever I run NinjaTrader, the Framework64 version gets replaced with the Framework version in the .csproj file that NT8 emits.
Moreover, this happens even if I make the reference change to the Framework64 version in Config.xml!
Is there any way around this? It's not lethal, my project still runs with the Framework version even though everything is built in x64.
Still, it would be nice to make the error go away.

Comment