Skip to content

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

@skausky

Description

@skausky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions