You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Ensure that the Just-In-Time debugger is enabled for Visual Studio 2017
Execute "test-with-dotnet-build.bat" or "test-with-dotnet-msbuild.bat"
Choose Visual Studio instance with MyTask solution to debug dotnet.exe
Expected behavior
The debugger should load the symbols for MyTask and allow debugging. Executing "test-with-msbuild.bat" will demonstrated the expected behavior.
Actual behavior
Visual Studio does not load the symbols for MyTask. The modules window states:
The module did not load at the default load address.
When choosing "Symbol Load Information..." from the module context menu, a dialog box states:
This module is a pre-compiled binary created by the ngen.exe tool. The debugger does not attempt to load symbols for these binaries, but will instead load symbols for original dll/exe when it is loaded by the .NET Runtime.
Environment data
Visual Studio Professional 15.4.0 Preview 1.0
MSBuild 15.3.409.57025
Dotnet 2.0.0
NuGet 4.3.0.4406
The text was updated successfully, but these errors were encountered:
jonathanbyrne
changed the title
Debugging MSBuild task run from dotnet.exe
Symbols cannot be loaded when debugging MSBuild task run from dotnet.exe
Sep 2, 2017
Steps to reproduce
Expected behavior
The debugger should load the symbols for MyTask and allow debugging. Executing "test-with-msbuild.bat" will demonstrated the expected behavior.

Actual behavior
Visual Studio does not load the symbols for MyTask. The modules window states:
When choosing "Symbol Load Information..." from the module context menu, a dialog box states:
Environment data
Visual Studio Professional 15.4.0 Preview 1.0
MSBuild 15.3.409.57025
Dotnet 2.0.0
NuGet 4.3.0.4406
The text was updated successfully, but these errors were encountered: