tried it late night, with Xide in a X#console app no problem, with VS17 a "does not exist in current context.
Adding DEFINE CRLF := e"\r\n" solved it - seems, the xh file is not included with this template..
Hmm, I think you're right, there seems to be a problem there. Please open the project properties in VS, set the "Build\Suppress standard header file" option to true, save and rebuild, should get the same error. Now set it back to False and Rebuild, does the error go away?
strange - "suppress" was "false", changed to "True", CTRL-S, CRTL-F5 -> works!
Changed back to false: CTRL-S, CRTL-F5 -> XS9002 Parser: mismatched input 'e"\r\n"'
Back to "True" -> works again...
Karl @VS17 15.0.0 (great, "about" dialog doesn't let you copy version info....)
Yes, I am well aware that CRLF was available to me globally as you say - it was in all my apps for Cologne 2017. However, when I tried to use it, in a new simple WPF app two days back, I got the following error :-
When I made my own class variable it worked as below, which is not a surprise
Now then, my worry is why should this be happening, when it did not previously - and - what else may been wrong with my PC setup ??
I am well aware there are always reasons for 'funny' things happening, so why this, why now, and why me ???
Did you see my previous tip about resetting the "Build\Suppress standard header file" project option to on and off again? This should do the trick, I think the problem is along the lines of what default value is used when that option is not stored in the project file. Setting it on and off should store it in the file and should be ok now.
Karl, in your case you are now getting a parser error because you have also used the DEFINE CRLF that I suggested. You need to use only either one of them, the DEFINE or the one in XSharpDefs.xh, but not both.
ups, sorry, sloppy me
Removed the define, set the "Suppress" to false and voila.
Made a new sample, -> same error. Swapped in "Build" from false to true and back (without intermediate save and/or build) - works now.