diff --git a/build/vs2010/Lol.Core.Rules.props b/build/vs2010/Lol.Core.Rules.props
index a7984818..959e6aec 100644
--- a/build/vs2010/Lol.Core.Rules.props
+++ b/build/vs2010/Lol.Core.Rules.props
@@ -20,8 +20,8 @@
- LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)
- LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)
+ LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\\','\').Replace('\','\\'))";%(PreprocessorDefinitions)
+ LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\\','\').Replace('\','\\'))";%(PreprocessorDefinitions)
WIN32;$(Win32Defines);%(PreprocessorDefinitions)
WIN32;$(Win32Defines);%(PreprocessorDefinitions)