Skip to content

Need to convert to web application before converting website project #977

@ortrails

Description

@ortrails

Steps to reproduce

  1. In Visual Studio 2019 open up a Web Application project that contains VB code.
  2. Run the "Convert to C#" command
  3. See error

Error message shown

#error Cannot convert ClassBlockSyntax - see comment for details
/* Cannot convert ClassBlockSyntax, CONVERSION ERROR: Object reference not set to an instance of an object. in 'Partial Class index_createM...' at character 206
at ICSharpCode.CodeConverter.CSharp.HandledEventsAnalyzer.CreateEventContainer(EventContainerSyntax p, SemanticModel semanticModel)
at ICSharpCode.CodeConverter.CSharp.HandledEventsAnalyzer.<>c__DisplayClass11_0.b__2(MethodStatementSyntax _, HandlesClauseItemSyntax e)
at System.Linq.Enumerable.d__233.MoveNext() at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext()
at System.Linq.Enumerable.d__17`2.MoveNext()

Details

  • Product in use: VS Extension
  • Version in use: 9.1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions