Opencv_test_cudev: No such file or directory when building a solution in visual studio 2019 (C1083)

I have followed these instructions to setup nvidia cuda for vscode. The problem is that when I try to build the install, the following errors appear:

I have read the following links: link1, link2 but they don’t solve my problem.