core
core copied to clipboard
AOT publish error despite having desktop development for C++ workload & ARM64 build tools installed?
I am getting the error "Make sure to install the Desktop Development for C++ workload. For ARM64 development also install C++ ARM64 build tools.". I have both Desktop Development for C++ and C++ ARM64 build tools installed. I only get this error on my laptop so I think it is a problem with my machine. Any suggestions on how to fix this? I am trying to publish a native console app with PublishAOT = true.
I have tried everything it seems to fix this. I have uninstalled visual studio 2019 and 2022. I reinstalled VS 2022 and then installed C++ desktop development and .NET dev packages. I installed Build tools and the C++ desktop development for that too (I am not sure why they are separate, but I am installed both). I then tried putting where.exe into my folder where my .net 7 app is and that gave me a new error: "cannot open input file advapi32.lib". I am lost. I am pretty sure there is something wrong with my PATH variables. Any suggestions?



Hi @skausky - Since this seems to be a Visual Studio setup or configuration issue, your best bet is to pose the question at https://developercommunity.visualstudio.com/VisualStudio
because it is arm not x86