I have been using the nRF Connect VS Code extension.
Some of my projects come from external sources, so I build them using the nRF Connect terminal and west commands.
I have noticed that even when I set my toolchain or SDK to a different version, the west build command still appears to be using an older toolchain.

When I used my build command it appears to show that I am using the 2.7.0 SDK and the 2.6.2 toolchain

Furthermore, when I look at my toolchains.json file it shows that the bundle ID for toolchain 2.7.0 is ce3b5ff664, but the terminal reads out -- Using NCS Toolchain 2.6.20240605.885759407716 for building. (C:/ncs/toolchains/ce3b5ff664/cmake) as shown in the screenshot above and appears to be associating toolchain 2.6.2 with ce3b5ff664.
[
{
"default_toolchain": {
"ncs_version": "v2.8.0-rc2"
},
"schema": 1,
"toolchains": [
{
"identifier": {
"bundle_id": "cf2149caf2"
},
"ncs_versions": [
"v2.6.0",
"v2.6.2"
]
},
{
"identifier": {
"bundle_id": "ce3b5ff664"
},
"ncs_versions": [
"v2.7.0"
]
},
{
"identifier": {
"bundle_id": "2d382dcd92"
},
"ncs_versions": [
"v2.8.0-rc2"
]
}
]
}
]
How can I set my SDK and toolchain when building through west? And how can I confirm that I am using my intended SDK and toolchain after building?