Description
Build info
- On Mac and win-arm64
- Install VScode version 1.99.3
- Install C# extension v2.74.24 (latest pre-release from the marketplace)
- NET 10 VMR SDK: 10.0.100-preview.4.25225.104(runtime-10.0.100-preview.4.25225.104)
To Reproduce
-
Create a new ASP.NET Razor project by doing
mkdir razor
cd razor
dotnet new razor -
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); -
Put breakpoint on this line
- 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())
Actual Result
But it displays as below ASP.Net symbols missing
Note
This issue not repro on Windows-x64
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
Metadata
Metadata
Assignees
Type
Projects
Status