Visual Studio 2015 editor removes the line continuation character in Visual Basic source code

Visual Studio 2015 Pro provides the following error :

error BC36716: Visual Basic 9.0 does not support implicit continuation string.

For the following source code :

1 .Line.Points = New UnitPoint() _ 2 { 3 New UnitPoint(Offset + OutlineBoxWidth_halph, 0), 4 New UnitPoint(Offset + OutlineBoxWidth_halph, "height"), 5 New UnitPoint(Offset + OutlineBoxWidth, "height") 6 } 

When I insert a continuation character in lines 2 through 5, the editor deletes it when I move the cursor from this line

Used to compile, but something has changed. What?

+7
visual studio
source share
1 answer

This was <LangVersion> in .vbproj.

+3
source share

All Articles