-
Notifications
You must be signed in to change notification settings - Fork 18
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
InvalidOperationException on InitializeFieldFromConstructor #69
Comments
InitializeFieldFromConstructor
change from SingleOrDefault to FirstOrDefault
I think I get error while have 2 classes on one file in .net core project. Check this please, I think need something condition in |
Is this different to the issue fixed by pull request #67 ? Or is this a separate issue? |
@justcla This is a different issue from #67. This problem is (obviously - from the stack trace) the meaning the field variable has multiple ancestors. This happens with nested classes.
I'm quite sure fix can be applied, and issue closed. |
I've uploaded a new VSIX with the fix suggested by Mike. v1.1.7 |
As I'm using my home-built binary, I can only confirm that it works (as expected). Additionally, it was @verysimplenick providing the patch (Jun 25). I just commented (and documented a bit) since I was now bitten by the bug too. |
Hi. In VS 2017.2 often see exception in
InitializeFieldFromConstructor
while edit code in .net core projects (1.1).The text was updated successfully, but these errors were encountered: