Visual Studio does not flag unterminated string constant in VB.Net
- by JoelFan
I noticed that if I leave off the terminating double quote for a string constant in Visual Studio 2010, there is no error or even a warning, i.e.
Dim foo as String = "hi
However, the continuous integration tool we are using flags an error:
error BC30648: String constants must end with a double quote.
What's going on here? Is there some language rule in VB.NET that makes a terminating double quote optional "sometimes"? Is there some setting in Visual Studio that will make it flag this as an error?