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

InvalidCastException PropertyChangedEventArgsUnnecessaryAllocationAnalyzer #1023

Open
kindermannhubert opened this issue Apr 8, 2019 · 2 comments

Comments

@kindermannhubert
Copy link
Contributor

When using 455c0d9 build of code-cracker in VS 2019 (16.0.0) on following code;

public class Program
{
    public static void Main()
    {
        new System.Collections.Generic.List<int>();
    }
}

It triggers exception during build:
warning AD0001: Analyzer 'CodeCracker.CSharp.Refactoring.PropertyChangedEventArgsUnnecessaryAllocationAnalyzer' threw an exception of type 'System.InvalidCastException' with message 'Unable to cast object of type 'Microsoft.CodeAnalysis.CSharp.Syntax.GenericNameSyntax' to type 'Microsoft.CodeAnalysis.CSharp.Syntax.IdentifierNameSyntax'.'.

@pgrm
Copy link

pgrm commented May 25, 2019

For me this is also happening on version 1.1.0

@HenningNT
Copy link

I'm seeing this as well. I added an external service from a WSDL file, so CC throws an exception when it's processing the generated code.

Is it possible to exclude generated code from analysis?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants