diff --git a/tools-local/Microsoft.DotNet.Build.Tasks.Local/Microsoft.DotNet.Build.Tasks.Local.builds b/tools-local/Microsoft.DotNet.Build.Tasks.Local/Microsoft.DotNet.Build.Tasks.Local.builds
index 41939dc5c..9a68fadfe 100644
--- a/tools-local/Microsoft.DotNet.Build.Tasks.Local/Microsoft.DotNet.Build.Tasks.Local.builds
+++ b/tools-local/Microsoft.DotNet.Build.Tasks.Local/Microsoft.DotNet.Build.Tasks.Local.builds
@@ -6,7 +6,7 @@
TargetGroup=netstandard1.5
+ Condition="'$(BuildCustomTasksForDesktop)' == 'true'">
TargetGroup=net45
diff --git a/tools-local/dir.props b/tools-local/dir.props
new file mode 100644
index 000000000..ed4b80b91
--- /dev/null
+++ b/tools-local/dir.props
@@ -0,0 +1,9 @@
+
+
+
+
+
+ true
+
+
+
\ No newline at end of file
diff --git a/tools-local/tasks/core-setup.tasks.builds b/tools-local/tasks/core-setup.tasks.builds
index 41939dc5c..9a68fadfe 100644
--- a/tools-local/tasks/core-setup.tasks.builds
+++ b/tools-local/tasks/core-setup.tasks.builds
@@ -6,7 +6,7 @@
TargetGroup=netstandard1.5
+ Condition="'$(BuildCustomTasksForDesktop)' == 'true'">
TargetGroup=net45