diff --git a/src/libraries/Directory.Build.props b/src/libraries/Directory.Build.props
index f36f83de45246..914f8531e197a 100644
--- a/src/libraries/Directory.Build.props
+++ b/src/libraries/Directory.Build.props
@@ -3,9 +3,12 @@
true
true
+ <_projectDirName>$([System.IO.Path]::GetFileName('$(MSBuildProjectDirectory)'))
+ true
+ true
+ true
+
- <_sepChar>$([System.IO.Path]::DirectorySeparatorChar)
- true
$(MSBuildProjectName)$(_sepChar)ref
@@ -14,7 +17,6 @@
$(RepositoryEngineeringDir)BeforeTargetFrameworkInference.targets
- $([System.Text.RegularExpressions.Regex]::IsMatch($(MSBuildProjectDirectory), 'src%24'))
$(LibrariesProjectRoot)OSGroups.json
false
@@ -65,8 +67,8 @@
- $(IsSourceProject)
- $(IsSourceProject)
+ $([MSBuild]::ValueOrDefault('$(IsSourceProject)', 'false'))
+ $([MSBuild]::ValueOrDefault('$(IsSourceProject)', 'false'))
true
$(RepositoryEngineeringDir)DefaultGenApiDocIds.txt,$(RepositoryEngineeringDir)ApiCompatExcludeAttributes.txt
diff --git a/src/libraries/Directory.Build.targets b/src/libraries/Directory.Build.targets
index 142c9dc38faee..c7f90af0891af 100644
--- a/src/libraries/Directory.Build.targets
+++ b/src/libraries/Directory.Build.targets
@@ -44,7 +44,7 @@
- true
+ true
true