VS: Wrong relative path in build event for C# projects
When adding a build event for a C# project, CMake converts the path to the command to a wrong relative path. This only happens when the build directory is a subdirectory of the top level source directory and no working directory for the command is specified. In this case CMake makes the relative path relative to the binary directory, but VS executes C# build events in the output directory (in contrary to C++ projects).
A solution would be to remove the conversion to a relative pathr, because it only happens for a very specific case and the overall support for relative projects has been removed in CMake 3.4.