After adding to .csproj
<PropertyGroup>
<CompileDependsOn>$(CompileDependsOn.ToString())</CompileDependsOn>
</PropertyGroup>
I'm getting error MSB4057: The target does not exist in the project.
error MSB4057: The target "CheckFileSystemCaseSensitive;
...other stuff...
;" does not exist in the project.
Nevertheless string between quotes looks correct.
Edit: Looks like duplication of strange behavior of Property functions