Skip to content

[NETSDKE2E][VMR][Regression][VScode]ASP.Net symbols are missing for IL symbols. #48762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
YingyingYuan9 opened this issue Apr 29, 2025 · 1 comment
Labels
Area-Workloads untriaged Request triage from a team member

Comments

@YingyingYuan9
Copy link
Member

YingyingYuan9 commented Apr 29, 2025

Build info

  1. On Mac and win-arm64
  2. Install VScode version 1.99.3
  3. Install C# extension v2.74.24 (latest pre-release from the marketplace)
  4. NET 10 VMR SDK: 10.0.100-preview.4.25225.104(runtime-10.0.100-preview.4.25225.104) from https://dev.azure.com/dnceng/internal/_build/results?buildId=2696236&view=artifacts&pathAsName=false&type=publishedArtifacts

To Reproduce

  1. Create a new ASP.NET Razor project by doing
    mkdir razor
    cd razor
    dotnet new razor

  2. Open project in VScode
    Add the following lines after the “name” line of the “Configurations” object on launch.json file.
    "justMyCode": false,
    "symbolOptions": {
    "searchMicrosoftSymbolServer": true
    },
    "suppressJITOptimizations": true,

    Add this line of code on Program.cs file
    Console.WriteLine("x " + 3);

  3. Put breakpoint on this line

Image

  1. F5 to continue debugging. The breakpoint you added above will get hit.
    Now F11.You may see the the source code for if (!app.Environment.IsDevelopment()).

Expected Result

This tests ASP.Net symbols at this point it should show you the source code for if (!app.Environment.IsDevelopment())

Image

Actual Result

But it displays as below ASP.Net symbols missing

Image

Note

This issue not repro on Windows-x64

Image

Dotnet --info

.NET SDK:
Version: 10.0.100-preview.4.25225.104
Commit: 1164eb4ffb
Workload version: 10.0.100-manifests.f1208abc
MSBuild version: 17.15.0-preview-25225-104+1164eb4ff

Runtime Environment:
OS Name: Mac OS X
OS Version: 15.4
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/10.0.100-preview.4.25225.104/

.NET workloads installed:
There are no installed workloads to display.
Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.

Host:
Version: 10.0.0-preview.4.25225.104
Architecture: x64
Commit: 1164eb4ffb

.NET SDKs installed:
10.0.100-preview.4.25225.104 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.4.25225.104 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.4.25225.104 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

@dotnet-policy-service dotnet-policy-service bot added the untriaged Request triage from a team member label Apr 29, 2025
@YingyingYuan9 YingyingYuan9 changed the title [NETSDKE2E][VMR][Regression]ASP.Net symbols are missing for IL symbols on Mac and Win-arm64. [NETSDKE2E][VMR][Regression][VScode]ASP.Net symbols are missing for IL symbols on Mac and Win-arm64. Apr 29, 2025
@YingyingYuan9 YingyingYuan9 changed the title [NETSDKE2E][VMR][Regression][VScode]ASP.Net symbols are missing for IL symbols on Mac and Win-arm64. [NETSDKE2E][VMR][Regression][VScode]ASP.Net symbols are missing for IL symbols. Apr 29, 2025
@YingyingYuan9
Copy link
Member Author

Repro on new VMR build 10.0.100-preview.4.25228.107(runtime-10.0.100-preview.4.25228.107) from https://dev.azure.com/dnceng/internal/_build/results?buildId=2698533&view=artifacts&pathAsName=false&type=publishedArtifacts

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Workloads untriaged Request triage from a team member
Projects
None yet
Development

No branches or pull requests

1 participant