Error: "C++ code builder is unable to build C++ code. In order to build C++ code for Universal Windows Platform, you must have one of these installed"

Barbosa, Mariana 26 Reputation points
2022-07-15T20:32:23.067+00:00

I have an application developed in unity, for hololens. When I try to generate the installer in visual studio I get this error:

C++ code builder is unable to build C++ code. In order to build C++ code for Universal Windows Platform, you must have one of these installed:

MSB3073 The command ""C:...\Il2CppOutputProject\IL2CPP\build\deploy\netcoreapp3.1\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=ARM64 -configuration=Release -platform=winrt -outputpath="C:...\build\bin\ARM64\Release\GameAssembly.dll" --data-folder="C:...\build\bin\ARM64\Release\" -cachedirectory="C:...\build\obj\il2cppOutputProject\ARM64\Release\" -generatedcppdir="C:...\Il2CppOutputProject\Source" --incremental-g-c-time-slice=3 --baselib-directory="C:\Program Files\Unity\Hub\Editor\2020.3.36f1\Editor\Data\PlaybackEngines\MetroSupport\Players\UAP\il2cpp\ARM64\Release" --avoid-dynamic-library-copy --profiler-report --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=unityaot -verbose --relative-data-path=Data/il2cpp_data --map-file-parser="C:...\Il2CppOutputProject\IL2CPP\MapFileParser\MapFileParser.exe"" exited with code 1. Il2CppOutputProject

I was using unity version 2020.3.10 before and I didn't have this problem. But I needed to update to resolve an issue and now I can't generate the installer. I'm using unity 2020.3.36, visual studio 2019 Version 16.11.17.

HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
398 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Barbosa, Mariana 26 Reputation points
    2022-07-18T12:48:47.72+00:00

    I managed to solve by installing again the windows sdk. it was already installed, but for some reason visual studio was not recognizing it. I reinstalled and it started working again

    1 person found this answer helpful.

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.