@Anamitra upadhyay , I was having the same issue.
This is how to resolv: Visual Studio 2022 can't detect Conda.
On VS, go to Toolbar on Tools > Options.
In the options windows, search for: conda. Then, it would ask for the conda executable path (the path to the conda.exe, it depent's on the installed location).
In my case, I set: C:\ProgramData\anaconda3\Scripts\conda.exe
Now, It's Working.