This is about extension to upload to extension manager

I am trying to create extensions for my custom slicer application by running the command given in the docs. Still, after running it and setting everything in place, the final folder comes empty every time, and the solutions that is available online is not working. So help fix this issue forefront.

You need to be more specific than that. Which commands, whats the output?

this command I have used :
cd /d C:\D\ExtensionsIndexR

“c:\Program Files\CMake\bin\cmake.exe” -DSlicer_DIR:PATH=C:/D/SR/Slicer-build ^
-DSlicer_EXTENSION_DESCRIPTION_DIR:PATH=C:/D/ExtensionsIndex ^
-DCMAKE_BUILD_TYPE:STRING=Release ^
C:/D/S/Extensions/CMake

“c:\Program Files\CMake\bin\cmake.exe” --build . --config Release

and the build folder for the extension is coming empty everytime