-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
"Length cannot be less than zero. " thrown on nectoreapp2.0 when trying to invoke Action<dynamic> that accesses a property on the input class - works for anonymous types #22544
Comments
From @maumar on June 28, 2017 19:22 In order to actually reproduce the issue: clone https://github.com/aspnet/EntityFramework/tree/netcoreapp_bug |
… "Length cannot be less than zero." bug. See: https://github.com/dotnet/corefx/issues/21689
Adjusting affected tests so that they no longer use dynamic Funcs. This change can be revered once/if https://github.com/dotnet/corefx/issues/21689 is fixed
Adjusting affected tests so that they no longer use dynamic Funcs. This change can be revered once/if https://github.com/dotnet/corefx/issues/21689 is fixed
Such types are still generic but don't have a tick in their name, which the name lookup expects all generic types' names to have. Handle this case correctly. Fixes #21689
Such types are still generic but don't have a tick in their name, which the name lookup expects all generic types' names to have. Handle this case correctly. Fixes #21689
There's the rub. Because the entity class is nested in a generic class, it's a generic type, but because it doesn't have type parameters itself there's no tick in its name, but I'm afraid that changes I made to |
…22117) Such types are still generic but don't have a tick in their name, which the name lookup expects all generic types' names to have. Handle this case correctly. Fixes #21689
I'm running into this issue at the moment. What's the correct way to swap out the Microsoft.CSharp assembly? I've got
It keeps using the Microsoft.NETCore.App 2.0.0 reference library. |
Looking at the merge the fix for this is in |
I'm trying to use this one here: https://dotnet.myget.org/feed/aspnetcore-dev/package/nuget/Microsoft.CSharp/4.4.0 Just don't know how to get this to be picked up by the module loading instead of the 2.0.0 reference library. It shows up in the NuGet project tree but at runtime the loaded modules view in visual studio shows the 2.0.0 assembly instead. |
@weshaggard how should they force it to pick up the 2.1 assembly? |
If all you are after is an updated Microsoft.CSharp library (not sure if that is all that is needed as I'm sure about this full issue), you can get it from our dotnet-core feed https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.CSharp/4.5.0-preview2-25621-02. |
Thanks @weshaggard, while indeed that version of the nuget package, does contain the fix for other platforms (decompiled it to verify), it's a no-op for netcoreapp 2.0 😑 |
For .NET Core 2.0 it is included in the shared framework package as opposed to the individual library package. You will need to follow the dogfooding instructions https://github.com/dotnet/corefx/blob/master/Documentation/project-docs/dogfooding.md to consume a prerelease version of the shared framework with the fix. RuntimeFrameworkVersion is the key property that will need to be updated. |
Thanks @weshaggard that looks like the missing piece of the puzzle. Thanks for that. |
…otnet#22117) Such types are still generic but don't have a tick in their name, which the name lookup expects all generic types' names to have. Handle this case correctly. Fixes #21689
Reopening to track 2.0.x port. |
Porting a fix for #21689 to release/2.0.0
Fixed for |
…otnet#22117) Such types are still generic but don't have a tick in their name, which the name lookup expects all generic types' names to have. Handle this case correctly. Fixes #21689
This is closed but doesn't seem to actually be fixed in SDK 2.0.2. The PR makes it seem like it is actually in 2.0.3 which is as yet unreleased. Is this correct? Is there a release date for SDK 2.0.3? Thanks! |
Yeah, I think it slipped into 2.0.3. @leecow do we have public ETAs on servicing releases? Namely 2.0.3? |
On track to have it out in the next week or so. |
2.0.3 shipped and fixes the issue for me! Great work by the team 🎉 |
CC: @jaredpar |
From @maumar on June 28, 2017 19:7
repro:
exception:
I am unable to reproduce this in standalone app, this only happens in our test infrastructure (Entity Framework Core). Using xunit and we have generic and polymorphic test classes and tests are in multiple assemblies - maybe this has something to do with it, but so far we were unable to figure out the root cause. Let me know if you need any more info.
dotnet --version: 2.0.0-preview3-006607
Copied from original issue: dotnet/coreclr#12529
The text was updated successfully, but these errors were encountered: