Raspberry pushed a new version of the Pico extension for Visual Studio.
This one doesn't seem to deal correctly with the board selection in the extension:
I deleted the build directory. Cleaned CMake. Configured CMake, Compiled. And it still thinks it's a non -w pico2 board with a LED on pin 25.
Anyone else tried it with a pico_w or a pico2_w?
edit 27-jul-2025
Solved. It was an error in my project's makefile. I had commented the board selection - expecting that the extension would manage it.
That caused that the extension couldn't switch the board. Removing the comment character fixed the situation: