diff --git a/build/vs2010/Lol.Core.Rules.props b/build/vs2010/Lol.Core.Rules.props
index 1d69ec58..a7984818 100644
--- a/build/vs2010/Lol.Core.Rules.props
+++ b/build/vs2010/Lol.Core.Rules.props
@@ -17,8 +17,12 @@
$(GlIncludes);$(SdlIncludes);$(D3d9Includes);$(XinputIncludes);%(AdditionalIncludeDirectories)
$(GlIncludes);$(SdlIncludes);$(D3d9Includes);$(XinputIncludes);%(AdditionalIncludeDirectories)
NOMINMAX;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)
- LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace('\',"\\"))";%(PreprocessorDefinitions)
- LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace('\',"\\"))";%(PreprocessorDefinitions)
+
+
+ LOL_CONFIG_PROJECTDIR="$(ProjectDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)
+ LOL_CONFIG_SOLUTIONDIR="$(SolutionDir.Replace(@"\\",@"\").Replace(@"\",@"\\"))";%(PreprocessorDefinitions)
+
WIN32;$(Win32Defines);%(PreprocessorDefinitions)
WIN32;$(Win32Defines);%(PreprocessorDefinitions)
_XBOX;$(XboxDefines);%(PreprocessorDefinitions)