Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET Core app opens reference assembly #2076

Closed
daniel-liuzzi opened this issue Jul 23, 2020 · 1 comment
Closed

.NET Core app opens reference assembly #2076

daniel-liuzzi opened this issue Jul 23, 2020 · 1 comment
Assignees
Labels
Bug Decompiler The decompiler engine itself

Comments

@daniel-liuzzi
Copy link

Note: steps to reproduce and erroneous output copied verbatim from #1720, as per #1720 (comment).

Steps to reproduce

  • Under VS2019, create a new project "Windows Forms App (.NET Core)"
  • In Program.Main(), type var folder = Environment.CurrentDirectory;
  • Right-click on CurrentDirectory > "Open code in ILSpy"

Erroneous output

You land on the method with a warning "This assembly is marked as 'reference assembly':

image

In case it helps, the assembly in question shows the following header:

// C:\Program Files\dotnet\packs\Microsoft.NETCore.App.Ref\3.1.0\ref\netcoreapp3.1\System.Runtime.Extensions.dll
// System.Runtime.Extensions, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
// Global type: <Module>
// Architecture: AnyCPU (64-bit preferred)
// Runtime: v4.0.30319
// This assembly is signed with a strong name key.
// Hash algorithm: SHA1
// Public key: 002400000480000094000000060200000024000052534131000400000100010007d1fa57c4aed9f0a32e84aa0faefd0de9e8fd6aec8f87fb03766c834c99921eb23be79ad9d5dcc1dd9ad236132102900b723cf980957fc4e177108fc607774f29e8320e92ea05ece4e821c0a5efe8f1645c4c0c93c1ab99285d622caa652c1dfad63d745d6f2de5f17e5eaf0fc4963d261c8a12436518206dc093344d5ad293

Details

  • Product in use: ILSpy / ILSpyAddIn
  • Version in use: 6.0.0.5881
@daniel-liuzzi
Copy link
Author

6.1.0.5902 works perfectly. Thanks to everyone involved!

image

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Decompiler The decompiler engine itself
Projects
None yet
Development

No branches or pull requests

2 participants