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
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"
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.