-
I have some C# projects that optionally include files based on the build configuration. When I open one of these files, I get an error message "The active document is not part of the open workspace. Not all language features will be available." Also the file contents are not available when searching by symbol. I have tried adding "--configuration", "Test" to the args: [] of the build task in tasks.json, but that doesn't help. |
Beta Was this translation helpful? Give feedback.
Answered by
dibarbet
Jul 30, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fschwiet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you're using C# Dev Kit, you can set the active configuration by clicking on the configuration in the bottom bar:
or invoking command
csdevkit.selectActiveConfiguration
.If you're using C# standalone, we unfortunately do not have a great way to set the active configuration