Skip to content

Symbols from daily builds of master brancn are not published to symbol server #10113

Closed
@gregg-miskelly

Description

@gregg-miskelly

Summary

The C# extension test team recently did a test of symbol server support using a preview6 build of the framework and found that one assembly, Microsoft.AspNetCore.Routing.Abstractions, had a PDB file, but the PDB wasn't published to symbol server.

Environment data

dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version: 3.0.100-preview6-011799
Commit: 3816213dde

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.14
OS Platform: Darwin
RID: osx.10.14-x64
Base Path: /usr/local/share/dotnet/sdk/3.0.100-preview6-011799/

Host (useful for support):
Version: 3.0.0-preview6-27707-07
Commit: c9e7f134dc

.NET Core SDKs installed:
3.0.100-preview6-011799 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.0-preview6-19257-04 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0-preview6-27707-07 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
VS Code version: 1.33.1
C# Extension version: 1.19 (v1.19.1)

Steps to reproduce

  1. Create a new ASP.NET Razor project by doing

    mkdir razor
    cd razor
    dotnet new razor

  2. Open razor with VScode

  3. It may ask at the bottom right to install assets to build and debug, say yes.

  4. After it has done this it will have created a .vscode directory in the ‘razor’ directory and a ‘launch.json’ file in that directory. Open the ‘.vscode’ directory, and double click on the ‘launch.json to edit it.

  5. Add the following lines after the “name” line of the “Configurations” object. (This allows debugging through the framework.

     "justMyCode": false,
     "symbolOptions": {
           "searchMicrosoftSymbolServer": true
     },
     "suppressJITOptimizations": true,
    
  6. Double click on the ‘Startup.cs’ file in the ‘Explorer’ pane to bring up that source code.

  7. Add the following line to the Startup.cs file at the beginning of the ‘Configure’ method (at the bottom of the file).
    Console.WriteLine("x " + 3);

  8. Place a breakpoint on that line (F9).

  9. Run the application until it hit that breakpoint (F5).

Expected behavior

It will load symbols from the Microsoft symbol server successfully.

Actual behavior

One assembly, Microsoft.AspNetCore.Routing.Abstractions, didn't have symbols.

Metadata

Metadata

Assignees

Labels

DoneThis issue has been fixedarea-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkquestion

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions