diff --git a/Directory.Build.props b/Directory.Build.props
index 5949f8aba..04cac2e66 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -5,6 +5,9 @@
$(BUILD_SOURCEBRANCH)
$(BUILD_SOURCEVERSION)
+
+ <_DefaultTargetFrameworks>MonoAndroid12.0;net6.0-android
+
false
false
diff --git a/source/AndroidXProject.cshtml b/source/AndroidXProject.cshtml
index 39d97d64d..831ea0e06 100644
--- a/source/AndroidXProject.cshtml
+++ b/source/AndroidXProject.cshtml
@@ -2,7 +2,7 @@
@using System.Linq
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
true
@if (!string.IsNullOrEmpty(Model.AssemblyName)) {
@(Model.AssemblyName)
diff --git a/source/androidx.appcompat/typeforwarders/androidx.appcompat.appcompat-resources-typeforwarders.csproj b/source/androidx.appcompat/typeforwarders/androidx.appcompat.appcompat-resources-typeforwarders.csproj
index 717a94647..d588578f0 100644
--- a/source/androidx.appcompat/typeforwarders/androidx.appcompat.appcompat-resources-typeforwarders.csproj
+++ b/source/androidx.appcompat/typeforwarders/androidx.appcompat.appcompat-resources-typeforwarders.csproj
@@ -1,6 +1,6 @@
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
Xamarin.AndroidX.AppCompat.Resources
Resources
Assets
diff --git a/templates/accompanist/Project.cshtml b/templates/accompanist/Project.cshtml
index 1a50d5944..4a6810378 100644
--- a/templates/accompanist/Project.cshtml
+++ b/templates/accompanist/Project.cshtml
@@ -7,7 +7,7 @@
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
true
@(rootNamespace)
@(assembly_name)
diff --git a/templates/auto-value/Project.cshtml b/templates/auto-value/Project.cshtml
index 3b97cd859..b6c41c7ea 100644
--- a/templates/auto-value/Project.cshtml
+++ b/templates/auto-value/Project.cshtml
@@ -1,6 +1,6 @@
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
true
Annotations
Xamarin.Google.AutoValue.Annotations
diff --git a/templates/dev-chrisbanes-snapper/Project.cshtml b/templates/dev-chrisbanes-snapper/Project.cshtml
index 233ea101e..208408a26 100644
--- a/templates/dev-chrisbanes-snapper/Project.cshtml
+++ b/templates/dev-chrisbanes-snapper/Project.cshtml
@@ -7,7 +7,7 @@
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
true
@(rootNamespace)
@(assembly_name)
diff --git a/templates/flogger/Project.cshtml b/templates/flogger/Project.cshtml
index 15ac08440..d086f34cb 100644
--- a/templates/flogger/Project.cshtml
+++ b/templates/flogger/Project.cshtml
@@ -1,6 +1,6 @@
- MonoAndroid12.0;net6.0-android
+ $(_DefaultTargetFrameworks)
true