replay-csharp icon indicating copy to clipboard operation
replay-csharp copied to clipboard

[6.0.100-alpha.1.21064.42] Replychsharp get 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

Open jiangzeng01 opened this issue 5 years ago • 0 comments

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

Repro steps:

  1. Download app source above and 'cd replay-csharp\Replay'
  2. dotnet run
  3. 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

jiangzeng01 avatar Jan 20 '21 11:01 jiangzeng01