-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Type: Bug
Issue Description
C#DK fails to discover tests in the dotnet/aspnetcore repo when assemblies are built.
Steps to Reproduce
git clone --recursive https://github.com/dotnet/aspnetcore.gitcd aspnetcore./restore.sh/./restore.cmdsource activate.sh/. ./activate.ps1cd src/OpenApicode .- Command Prompt > .NET: Open Solution > OpenApi.slnf
- Invoke test discovery from explorer.
Expected Behavior
Tests from test assemblies show up in explorer.
Actual Behavior
No tests show up.
Logs
Created Test Controller
Log verbosity: diagnostic
[diag] C# Dev Kit version: 1.30.28
[diag] Test Explorer version: 22
[diag] platform: darwin
[diag] arch: arm64
[diag] Testing Platform Protocol enabled: false
[diag] Build-on-Refresh disabled: false
[diag] Build-on-Run disabled: false
[diag] Auto-Discovery disabled: false
[diag] Diff enabled: true
[diag] Calling dotnet.findPath with context: {"acquireContext":{"version":"0.0","requestingExtensionId":"ms-dotnettools.csdevkit","architecture":"arm64","mode":"sdk","installType":"global"},"versionSpecRequirement":"greater_than_or_equal","rejectPreviews":false}
[diag] Found dotnet.exe at: /Users/captainsafia/git/aspnetcore/openapi-fixes/.dotnet/dotnet
Found global.json at /Users/captainsafia/git/aspnetcore/openapi-fixes/global.json
Initialized Test Explorer Server [77194]
Using vstest from dotnet sdk in [/Users/captainsafia/git/aspnetcore/openapi-fixes/.dotnet/sdk/10.0.100-preview.6.25272.112].
Test Store Folder: /Users/captainsafia/Library/Application Support/Code/User/workspaceStorage/86a739808811f12d479cca334c5960fa/ms-dotnettools.csdevkit
[diag] Test Store loaded from persistance: Yes
Test data store opened in 0.040 sec.
Test controller initialized.
Initialized project system provider.
Waiting for projects to be detected by Project System...
2 projects added, 0 changed, 0 removed.
Scheduling discovery: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll [Last modified: 7/9/2025, 1:05:06 PM]
Scheduling discovery: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll [Last modified: 7/9/2025, 1:05:10 PM]
[diag] Poller added for project: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[diag] Poller added for project: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
No runSettingsPath configured. Falling back to default settings.
========== Starting test discovery ==========
[diag] File timestamp changed from 1/1/0001 12:00:00 AM to 7/9/2025 1:05:06 PM for /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[diag] File timestamp changed from 7/9/2025 12:38:20 PM to 7/9/2025 1:05:10 PM for /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
[diag] Grouped /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
/Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll : (VsTestConsoleRunner, , , False)
[diag] Test discovery settings for /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll,/Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll:
<RunSettings>
<RunConfiguration>
<CollectSourceInformation>true</CollectSourceInformation>
</RunConfiguration>
<DataCollectionRunSettings>
<DataCollectors />
</DataCollectionRunSettings>
</RunSettings>.
[diag] Test platform diagnostic logs disabled.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.0-preview.6.25278.103)
No test is available in /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.0-preview.6.25278.103)
No test is available in /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Tests are available, running test discovery: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
Tests are available, running test discovery: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
Skipping discovery, already scheduled: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll [7/9/2025, 1:05:06 PM]
[diag] Skipping discovery, no projects to discover
Skipping discovery, already scheduled: /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll [7/9/2025, 1:05:10 PM]
[diag] Skipping discovery, no projects to discover
0 tests discovered from /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll;/Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll in 2533.0994 ms
[diag] No tests discovered. See troubleshooting guidance: https://code.visualstudio.com/docs/csharp/cs-dev-kit-faq#_why-are-my-tests-not-being-discovered-or-run-in-the-test-explorer
========== Test discovery finished: 0 Tests found in 2.5 sec ==========
No runSettingsPath configured. Falling back to default settings.
No runSettingsPath configured. Falling back to default settings.
Log verbosity changed to: trace
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.SourceGenerators.Tests.dll
[trace] Polling /Users/captainsafia/git/aspnetcore/openapi-fixes/artifacts/bin/Microsoft.AspNetCore.OpenApi.Tests/Debug/net10.0/Microsoft.AspNetCore.OpenApi.Tests.dll
No runSettingsPath configured. Falling back to default settings.
Environment information
VSCode version: 1.101.2
C# Extension: 2.84.19
Using OmniSharp: false
Dotnet Information
Host:
Version: 9.0.7
Architecture: arm64
Commit: 3c298d9f00
RID: osx-arm64
.NET SDKs installed:
No SDKs were found.
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.7 [/Users/captainsafia/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.7arm64aspnetcore/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.7 [/Users/captainsafia/Library/Application Support/Code/User/globalStorage/ms-dotnettools.vscode-dotnet-runtime/.dotnet/9.0.7arm64aspnetcore/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
DOTNET_ROOT [/Users/captainsafia/git/aspnetcore/openapi-fixes/.dotnet]
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
Visual Studio Code Extensions
| Extension | Author | Version | Folder Name |
|---|---|---|---|
| ayu | teabyii | 1.0.5 | teabyii.ayu-1.0.5 |
| azure-api-center | apidev | 1.2.0 | apidev.azure-api-center-1.2.0 |
| azure-dev | ms-azuretools | 0.9.0 | ms-azuretools.azure-dev-0.9.0 |
| azure-repos | ms-vscode | 0.40.0 | ms-vscode.azure-repos-0.40.0 |
| catppuccin-vsc | Catppuccin | 3.17.0 | catppuccin.catppuccin-vsc-3.17.0 |
| code-spell-checker | streetsidesoftware | 4.0.47 | streetsidesoftware.code-spell-checker-4.0.47 |
| codespaces | GitHub | 1.17.3 | github.codespaces-1.17.3 |
| codetour | vsls-contrib | 0.0.59 | vsls-contrib.codetour-0.0.59 |
| copilot | GitHub | 1.341.0 | github.copilot-1.341.0 |
| copilot-chat | GitHub | 0.28.5 | github.copilot-chat-0.28.5 |
| csdevkit | ms-dotnettools | 1.30.28 | ms-dotnettools.csdevkit-1.30.28-darwin-arm64 |
| csharp | ms-dotnettools | 2.84.19 | ms-dotnettools.csharp-2.84.19-darwin-arm64 |
| docker | docker | 0.12.0 | docker.docker-0.12.0-darwin-arm64 |
| docs-build | docsmsft | 0.4.6 | docsmsft.docs-build-0.4.6 |
| EditorConfig | EditorConfig | 0.17.4 | editorconfig.editorconfig-0.17.4 |
| github-vscode-theme | GitHub | 6.3.5 | github.github-vscode-theme-6.3.5 |
| hexeditor | ms-vscode | 1.11.1 | ms-vscode.hexeditor-1.11.1 |
| indent-one-space | usernamehw | 1.0.0 | usernamehw.indent-one-space-1.0.0 |
| jupyter-keymap | ms-toolsai | 1.1.2 | ms-toolsai.jupyter-keymap-1.1.2 |
| jupyter-renderers | ms-toolsai | 1.3.0 | ms-toolsai.jupyter-renderers-1.3.0 |
| mokka | Demenskiy | 2.0.5 | demenskiy.mokka-2.0.5 |
| night-owl | sdras | 2.1.1 | sdras.night-owl-2.1.1 |
| nord-visual-studio-code | arcticicestudio | 0.19.0 | arcticicestudio.nord-visual-studio-code-0.19.0 |
| powershell | ms-vscode | 2025.2.0 | ms-vscode.powershell-2025.2.0 |
| remote-containers | ms-vscode-remote | 0.421.0 | ms-vscode-remote.remote-containers-0.421.0 |
| remote-repositories | ms-vscode | 0.42.0 | ms-vscode.remote-repositories-0.42.0 |
| remote-wsl | ms-vscode-remote | 0.99.0 | ms-vscode-remote.remote-wsl-0.99.0 |
| remotehub | GitHub | 0.64.0 | github.remotehub-0.64.0 |
| rest-client | humao | 0.25.1 | humao.rest-client-0.25.1 |
| symbols | miguelsolorio | 0.0.24 | miguelsolorio.symbols-0.0.24 |
| theme-dracula | dracula-theme | 2.25.1 | dracula-theme.theme-dracula-2.25.1 |
| trxview | timheuer | 0.2.20 | timheuer.trxview-0.2.20 |
| vscode-azurefunctions | ms-azuretools | 1.17.3 | ms-azuretools.vscode-azurefunctions-1.17.3 |
| vscode-azureresourcegroups | ms-azuretools | 0.11.0 | ms-azuretools.vscode-azureresourcegroups-0.11.0 |
| vscode-bicep | ms-azuretools | 0.36.177 | ms-azuretools.vscode-bicep-0.36.177 |
| vscode-containers | ms-azuretools | 2.0.3 | ms-azuretools.vscode-containers-2.0.3 |
| vscode-dotnet-runtime | ms-dotnettools | 2.3.6 | ms-dotnettools.vscode-dotnet-runtime-2.3.6 |
| vscode-github-actions | github | 0.27.2 | github.vscode-github-actions-0.27.2 |
| vscode-icons | vscode-icons-team | 12.13.0 | vscode-icons-team.vscode-icons-12.13.0 |
| vscode-jupyter-cell-tags | ms-toolsai | 0.1.9 | ms-toolsai.vscode-jupyter-cell-tags-0.1.9 |
| vscode-jupyter-slideshow | ms-toolsai | 0.1.6 | ms-toolsai.vscode-jupyter-slideshow-0.1.6 |
| vscode-pull-request-github | GitHub | 0.112.0 | github.vscode-pull-request-github-0.112.0 |
| vscode-xml | redhat | 0.29.0 | redhat.vscode-xml-0.29.0-darwin-arm64 |
| vscode-yaml | redhat | 1.18.0 | redhat.vscode-yaml-1.18.0 |
| vsliveshare | ms-vsliveshare | 1.0.5948 | ms-vsliveshare.vsliveshare-1.0.5948 |
| vsliveshare-pack | ms-vsliveshare | 0.4.0 | ms-vsliveshare.vsliveshare-pack-0.4.0 |
Extension version: 1.30.28
VS Code version: Code 1.101.2 (2901c5ac6db8a986a5666c3af51ff804d05af0d4, 2025-06-24T20:27:15.391Z)
OS version: Darwin arm64 24.5.0
Modes:
System Info
| Item | Value |
|---|---|
| CPUs | Apple M2 Max (12 x 2400) |
| GPU Status | 2d_canvas: enabled canvas_oop_rasterization: enabled_on 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: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 7, 8, 9 |
| Memory (System) | 64.00GB (5.32GB free) |
| Process Argv | . --crash-reporter-id 564dfdb0-e8e3-47c2-81f4-4214e191431e |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249599
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
2e7ec940:31000449
cppperfnew:31000557
dwnewjupytercf:31046870
nativeloc1:31344060
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
4gafe986:31271826
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixf:31329273
j6a0c355:31339598
d2249276:31341129
d7aab740:31338110
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31335814
nes-diff-11:31337487
nes-set-on:31340697
6abeh943:31336334
yijiwantestdri0626-c:31336931
4gdec884:31342391