diff --git a/PCbuild/pyproject.props b/PCbuild/pyproject.props
index 05473fd054c..d1ac99847b9 100644
--- a/PCbuild/pyproject.props
+++ b/PCbuild/pyproject.props
@@ -5,7 +5,7 @@
10.0
$(BuildPath)
$(OutDir)\
- $(SolutionDir)obj\
+ $(MSBuildThisFileDirectory)obj\
$(Py_IntDir)\$(ArchName)_$(Configuration)\$(ProjectName)\
$(Py_IntDir)\$(ArchName)_PGO\$(ProjectName)\
$(ProjectName)