Application Name: replay-csharp
OS: Windows 10 RS5
CPU: X64
.NET Build Number: 6.0.100-alpha.1.21064.42
App Source: replay-csharp.zip
DevDiv bug: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1266457
Repro steps:
- Download app source above and 'cd replay-csharp\Replay'
- dotnet run
- Type “Console.Write("hellow world")” in app window, and click Enter.
Expected Result:
print "hello world"
Actual Result:
error CS0009: Metadata file 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.0-alpha.1.21063.13\System.IO.Compression.Native.dll' could not be opened -- PE image doesn't contain managed metadata.
Findings:
When debugging the source code in Visual Studio 2019, below logs print in Output window.
'Replay.exe' (CoreCLR: clrhost): Loaded 'C:\.NETCoreUpgradeApps\replay-csharp\Replay\bin\Debug\netcoreapp3.1\win-x64\System.Globalization.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
'Replay.exe' (CoreCLR: clrhost): Loaded 'C:\.NETCoreUpgradeApps\replay-csharp\Replay\bin\Debug\netcoreapp3.1\win-x64\System.AppContext.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
Exception thrown: 'Microsoft.CodeAnalysis.Scripting.CompilationErrorException' in Microsoft.CodeAnalysis.Scripting.dll
@dotnet-actwx-bot