How to fix the problem "Task could not find `al.exe` C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools\"

Danila 25 Reputation points
2023-11-07T20:15:46.6766667+00:00

When I run the build of the project, an error appears.Severity Code Description Project File Line Suppression State

Error Task could not find "al.exe" using the SdkToolsPath "C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8.1 Tools" or the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK\4.8.1\WinSDK-NetFx40Tools-x86". Make sure the SdkToolsPath is set and the tool exists in the correct processor specific location under the SdkToolsPath and that the Microsoft Windows SDK is installed Adguard.Burn

But along the specified path I have files and environment variables, I added the value too

image

User's image

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2023-11-08T03:31:07.12+00:00

    Hi @Danila, 

    Welcome to Microsoft Q&A! 

    Please try the following workarounds:

    1. Close all running VS instances and go to Visual Studio installerModify > Individual components > ensure that .NET Framework 4.8.1 SDK is installed. 
    2. Manually install the Windows SDK.  

    Sincerely,

    Anna


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most 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.