ARM64 build error after VS update

Heiko 1,286 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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,304 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,068 questions
{count} votes

Your answer

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