Build/Test Issues

Xaml files with german Umlaute äöüÄÖÜ don't compile

Started by slieser on 13,977 views

Xaml file with german Umlaute gives the following error:

[09:31:38.579-BuildTask-15] Error 'Compilation': fahrkartenautomat.gui.app: C:\Users\slieser\AppData\Local\NCrunch\5504\15\MainWindow.xaml (16): 'Invalid character in the given encoding. Line 16, position 143.' XML is not valid.

Build fine under VS2010 and even R# has no problem with this ;-)


Regards
Stefan Lieser
Interesting. Is there anything you can tell me about the encoding of the file? UTF/Unicode?

Also - can you punch through a bug report after it fails to build? I'll take a look at the log file :)
The file was created with VS2010 and is UTF-8 encoded without BOM.

Bug Report is on the way...
Awesome, thanks. I'll check it out :)
Hi Slieser,

Thanks again for posting this. I've successfully reproduced and fixed the problem in the upcoming 1.32b release.

The issue is caused by NCrunch losing knowledge of the XAML file's original encoding when modifications are being passed through by the IDE. Therefore you'll only experience this problem if you modify the encoded .XAML file while NCrunch is running in the background. As a workaround, closing the editor window containing the XAML file and doing a disable/enable on NCrunch should allow the issue to correct itself after you've made a change. Alternatively you could restart your IDE.

I hope this helps.


Cheers,

Remco
For anyone interested, a proper fix for this issue has now been released as part of 1.32b.

Post a reply

Log in to reply.