I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
I mean like when ever i click pristine build in the vs code i am getting this below error
"Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
but the build is getting done when it is done in the terminal 
When you create your build configuration, does v3.1.1 show up as an option? And how about the toolchain? Does it appear there?
Does it build the first time after you click "generate and build" in the "Add Build Configuration" tab, but then later doesn't find the SDK version? Or does it not build at all the first time around either?
Is this only an issue for v3.1.1? Or is it an issue for older NCS versions as well? Can you try with e.g. v3.0.1 and see if the issue is the same?
Best regards,
Edvin
Also, can you please share the content of your: v3.1.1\.west\config file?
BR,
Edvin
So basically my workflow will be like this, openning an existing application or creating one, when it is created i will go for the build configuration, so in the build configuration menu everything is fine and normal, i can see the tool chain i can see the sdk version and everything, so after that i can do the generate and build too, it will build when i am in that menu, after that when i go to the actions menu for the flash option it wont be there, it asks me to build again over there showing that two icons pristine build and output channel, so when i click the pristine build it shows that error " Unable to build: SDK not found. Ensure that a valid SDK is used for the build configuration."
i also tried with a different version of sdk the issue presists the same,
okay my contents in the config file is as below
[manifest]
path = nrf
file = west.yml
[zephyr]
base = C:\ncs\v3.1.1\zephyr
can you try changing that last line to:
base = zephyr
And then try to delete your current build configuration, restart VS Code and try to generate the build configuration again?
Best regards,
Edvin
It Worked! Thank you. i dont know how it got changed maybe i did something wrong over there maybe but yea nowit is working.
BR
Vishveshwaran