core icon indicating copy to clipboard operation
core copied to clipboard

AOT publish error despite having desktop development for C++ workload & ARM64 build tools installed?

Open skausky opened this issue 2 years ago • 2 comments
trafficstars

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?

image

image

image

skausky avatar Apr 08 '23 18:04 skausky

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

leecow avatar Apr 13 '23 16:04 leecow

because it is arm not x86

NCLnclNCL avatar Apr 23 '23 06:04 NCLnclNCL