ARM64 build error after VS update

Heiko 1,311 Reputation points
2024-12-14T15:42:22.0933333+00:00

I updated VS 2022 from version 17.11.3 to 17.12.3. Now I cannot compile a C++ DLL for ARM64 for a UWP app which is already in Store anymore. I get the following output:

1>------ Rebuild All started: Project: FontAccess, Configuration: Release ARM64 ------
1>pch.cpp
1>(compiling source file 'pch.cpp')
1>DWriteFonts.cpp
1>(compiling source file 'DWriteFonts.cpp')
1>ARM64\Release\DWriteFonts.obj : fatal error LNK1112: module machine type 'x86' conflicts with target machine type 'ARM64'
1>Done building project "FontAccess.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

The OS is Windows 11 Pro x64.

What can I do? Do I have to install new components in VS Installer? I tried something, but it didn't help.

arm64

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
{count} votes

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.