microsoft / microsoft/vscode-dotnettools

Tasks only found from SLNX folder

Open
#2,807 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area-project-cps
Dominant language
No language data
Stars
321
Forks
54
Avg merge
2d 19h
Merged PRs (30d)
2

Description

Type: Bug

I'm trying to convert a multi-root workspace file into DevKit/SLNX file format.

Each root folder is its own repository with its own .vscode folder/tasks.json.

With SLNX, I can no longer access my tasks from any repo/folder, only the tasks.json file in the .vscode subfolder found in the folder of the SLNX file.

Here is my workspace file:

{
	"folders": [
		{
			"path": "../../Api/DataStore",
			"name": "Api.DataStore"
		},
		{ "path": "../../Core" },
		{ "path": "../../Abstractions" },
		{ "path": "../../../GlobalConfiguration" },
		{ "path": "../../Extensibility/JsonSchemas" }
	],
	"launch": {
		"version": "0.2.0",
		"configurations": [],
		"compounds": []
	}
}

From the command palette, if I select Tasks: Run Task, I see the following:

Image

Here is my equivalent slnx file found in the C:\BTR\Camelot\Api\DataStore path (the first folder in the workspace image above):

<Solution>
	<Folder Name="/Abstractions/">
		<Project Path="../../Abstractions/Api.Contracts/DataLocker/src/Camelot.Abstractions.Api.Contracts.DataLocker.csproj" />
		<Project Path="../../Abstractions/Api.Contracts/DataStore/src/Camelot.Abstractions.Api.Contracts.DataStore.csproj" />
		<Project Path="../../Abstractions/Api.Contracts/RBLe/src/Camelot.Abstractions.Api.Contracts.RBLe.csproj" />
		<Project Path="../../Abstractions/Api.Contracts/WebService.Proxy/src/Camelot.Abstractions.Api.Contracts.WebService.Proxy.csproj" />
		<Project Path="../../Abstractions/Api.Contracts/xDS/src/Camelot.Abstractions.Api.Contracts.xDS.csproj" />
		<Project Path="../../Abstractions/RBLe/Camelot.Abstractions.RBLe.csproj" />
	</Folder>
	<Folder Name="/Core/">
		<Project Path="../../Core/Api/src/Camelot.Api.csproj" />
		<Project Path="../../Core/Data/src/Camelot.Data.csproj" />
		<Project Path="../../Core/DbContexts/Camelot/src/Camelot.DbContexts.Camelot.csproj" />
		<Project Path="../../Core/DbContexts/Evolution/src/Camelot.DbContexts.Evolution.csproj" />
		<Project Path="../../Core/DbContexts/[Core]/Camelot.DbContexts.Core.csproj" />
		<Project Path="../../Core/Domain.Web/src/Camelot.Domain.Web.csproj" />
		<Project Path="../../Core/Domain/src/Camelot.Domain.csproj" />
		<Project Path="../../Core/Infrastructure.Web/src/Camelot.Infrastructure.Web.csproj" />
		<Project Path="../../Core/Infrastructure/src/Camelot.Infrastructure.csproj" />
		<Project Path="../../Core/Telemetry.Web/src/Camelot.Telemetry.Web.csproj" />
		<Project Path="../../Core/Telemetry/src/Camelot.Telemetry.csproj" />
		<Project Path="../../Core/Testing/Integration/src/Camelot.Testing.Integration.csproj" />
	</Folder>
	<Project Path="src/Camelot.Api.DataStore.csproj" />
	<Project Path="tests/Integration/Camelot.Api.DataStore.Tests.Integration.csproj" />
</Solution>

When I try the same command for running tasks, I only get tasks found in the \Api\DataStore.vscode folder.

Image

Is there any way to enable showing all tasks like it used to?

Extension version: 2.10.3
VS Code version: Code 1.109.4 (c3a26841a84f20dfe0850d0a5a9bd01da4f003ea, 2026-02-16T15:35:57.932Z)
OS version: Windows_NT x64 10.0.26200
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x10de, DEVICE=0x1f02 [NVIDIA GeForce RTX 2070], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.8129 ACTIVE
GPU1: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.94GB (11.13GB free)
Process Argv --log info --crash-reporter-id 324c4641-8e15-4efb-9bdc-b30d565fb957
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
cloudbuttont:31379625
aihoversummaries_f:31453033
42190218_ostrepl:31403339
56b7f661:31457055
use-responses-api:31390855
defaultusage:31403421
je187915:31401257
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31463857
ge8j1254_inline_auto_hint_haiku:31431912
nes-autoexp-off:31446584
a5gib710:31434435
38bie571_auto:31461585
7a04d226_do_not_restore_last_panel_session:31438103
preserve_tokens:31444547
cp_cls_t_1081:31454832
copilot-nes-oct-trt:31432596
ia-use-proxy-models-svc:31452481
a43f0576c:31442824
e9c30283:31461165
c0ci8992_validated:31449878
nes-conv-2-3:31462665
5e5h6286:31463969
edit_mode_hidden:31461530
nostats:31457175
864ei723_large_tool_results_to_disk:31460878
pp-44cc9697:31455969
b1f5h706:31458075
nes-extended-on:31455476
chat:31457767
ah:31460422

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Tasks: Run Task command and compare task discovery for the SLNX file's folder against each listed workspace root's .vscode/tasks.json. Done means tasks from all workspace roots appear, rather than only those under the SLNX file's folder.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, vscode
Domain
developer-experience, devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.