How to invoke the tlbexp command as post-build event to export a type library from a C# EXE from the Visual Studio 2019 IDE?
See the question and my original answer on StackOverflowtlbexp.exe is usually not in the path. What you can do is use this instead (without surrounding " " as you did):
call "$(DevEnvDir)..\Tools\VsDevCmd.bat"
tlbexp.exe $(TargetDir)$(TargetFileName)
This will execute the equivalent to the "Developer Command Prompt for Visual Studio" shell command which will set all paths appropriately, and then run tlbexp: