-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Crossgen'd NuGet.LibraryModel produces MissingMethodException: Method not found: '?'. #7296
Comments
CC @jkotas |
This is regression introduced by dotnet/coreclr#7895. Encoding of native method signatures gets confused by the artificial constrainedType. Simple repro - crossgen and run using corerun:
|
I'm also seeing this error in the compiler as well:
The odd thing about the compiler exception is that I am only seeing it on non-Windows. The exact same test passes on Windows. I ran into the above "NuGet.LibraryModel" error on Windows (I didn't test non-Windows). It might just be that Roslyn doesn't get into this code path on Windows, |
Use the crossgen and jit that comes with Microsoft.NETCore.App so we don't have to keep a corresponding CoreCLR version around. Remove workarounds for crossgen bug https://github.com/dotnet/coreclr/issues/9118
Using the following project:
Steps to repro:
https://dotnet.myget.org/F/cli-deps/api/v3/index.json
to your nuget.config to restore these packages)a. I used the following command:
F:\cli\artifacts\win10-x64\stage2\dotnet.exe bin\Debug\netcoreapp2.0\publish\My20App.dll
(note use a dotnet.exe that has a shared framework 2.0.0-beta-001386-00 installed).Expected result:
The app should execute as usual.
Actual result:
The text was updated successfully, but these errors were encountered: