Skip to content

VB -> C#: error converting VB xml syntaxΒ #679

Closed
@KunzeAndreas

Description

Input code

Const name = "name"
Dim xElement = <Module Name=<%= name %> LicenseCount=<%= 100 %>></Module>

Erroneous output

const string name = "name";
var xElement = XElement.Parse("<Module Name=<%= name %> LicenseCount=<%= 100 %>></Module>");

Expected output

const string name = "name";
var xElement = XElement.Parse("<Module Name=\"" + name + "\" LicenseCount=\"" + 100 +  "\"></Module>");

Details

  • Product in use: VS extension
  • Version in use: 8.2.1.0
  • Did you see it working in a previous version, which? no

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions