I have verified in the project properties and solution properties, configuration manager, that my solution and project are set to x64 Release. The output path is "bin\x64\Release\".
I have the following in app.xaml.cs (it's a C# WPF application), which was working shortly ago:
#if (!DEBUG)
Mouse.OverrideCursor = Cursors.None;
#endif
Currently, in Release mode, the middle line is grayed out. Removing the "!" restores it.
When running, in Release mode, the mouse cursor is not hidden, and this section is seeminly skipped over.
Visual Studio, in another project, works well and fine with Debug vs. Release modes. Has anyone seen this behaviour, and does anyone have any ideas on how to fix it?