I’m using Visual Studio 2019 on Windows, so I don’t have [FONT=Lucida Sans Unicode]UE_4.22\Engine\Binaries\Win64\UnrealHeaderTool.target in my project directory.
I did find this issue Unreal Engine Issues and Bug Tracker (UE-73197), which says the fix was targeted for 4.23. I’m going through the Udemy course and currently using 4.22 so I haven’t tried this with a newer version.