"unexpected end-of-file found"
XAML/C++/CX XAML page cpp file code shows "unexpected end-of-file found", no other information.
It was OK in old VS version.
How can I know what's wrong?
It's hard to tell what caused this error based on the error message, can you please provide a simple sample that can be reproduced for us to test? In addition, can you tell us what is your "old VS version" and current VC version?
The code's last modify date is about one year ago. The page is complex and new created xaml page has no problem, so I don't know how to reproduce easily.
When I put #error to the end of file , it only show that error message, so there should not be other compiler error. I think it may be related to XAML page compiling for C++/CX.
Can I get more infomation about this error, like line number, what code does it think is not finished?
So did this error throw when you launched the app or after doing some operations? In addition, if you create a new project and copy the code from the page which throws the error, then run it, will the same issue occur?
Hi, have you solved your issue?
No, it should be compiler error message, the compiler may provide more information about the error.
For debugging, you can load debugging symbols for code that does not currently have symbols loaded. Choose Debug options->Debugging->Symbols, select Microsoft Symbol Servers or browse to the symbol path, remember to add a cache directory to cache symbols. Then click the General->disable "Just My Code", in this case, it won't hide non-user code frames. After that, compile the project again, will more information about error occur? In addition, about the complete steps, you can refer to this document.
Thanks. But I said it is compiler error. Old code can not be compiled, not debugging issue.
I do not have to resovle it now (do not want to update the app now). You can close this issue if you wish.
OK, and you can go to visual studio to submit feedback(Help tab->Send feedback).
Sign in to comment