Error BC30201: Expression expected.

I have a solution that when compiled under the IDE all of the projects build with no issue.  However when compiled with msbuild, I receive the following error message “error BC30201: Expression expected. ” on line 506 and 238 of a vb.net project.

line 505 If Counter => e.NumberOfItems Then
line 238 If Counter => e.NumberOfItems Then

 

I made a typo with => it should be >=.   But why does it compile under the IDE?  If I format the the document then the IDE corrects the typo.  So this looks like another example of vb not compiling the code I wrote.

Comments [0]
All comments require the approval of the site owner before being displayed.
Name
E-mail
(will show your gravatar icon)
Home page

Comment (Some html is allowed: a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u) where the @ means "attribute." For example, you can use <a href="" title=""> or <blockquote cite="Scott">.  

Enter the code shown (prevents robots):

Live Comment Preview