diff --git a/src/Layout/redist/minimumMSBuildVersion b/src/Layout/redist/minimumMSBuildVersion
index d9a8a3578858..28ebe8b4dbed 100644
--- a/src/Layout/redist/minimumMSBuildVersion
+++ b/src/Layout/redist/minimumMSBuildVersion
@@ -1 +1 @@
-16.3.0
+16.5.0
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs
index f077857129d9..88886c73c20d 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/ResolveTargetingPackAssets.cs
@@ -81,6 +81,14 @@ protected override void ExecuteCore()
string targetingPackDataPath = Path.Combine(targetingPackRoot, "data");
string targetingPackDllFolder = Path.Combine(targetingPackRoot, "ref", targetingPackTargetFramework);
+
+ // Fall back to netcoreapp5.0 folder if looking for net5.0 and it's not found
+ if (!Directory.Exists(targetingPackDllFolder) &&
+ targetingPackTargetFramework.Equals("net5.0", StringComparison.OrdinalIgnoreCase))
+ {
+ targetingPackTargetFramework = "netcoreapp5.0";
+ targetingPackDllFolder = Path.Combine(targetingPackRoot, "ref", targetingPackTargetFramework);
+ }
string platformManifestPath = Path.Combine(targetingPackDataPath, "PlatformManifest.txt");
diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
index 36363867efa1..89b0ae511947 100644
--- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
+++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.TargetFrameworkInference.targets
@@ -49,13 +49,6 @@ Copyright (c) .NET Foundation. All rights reserved.
<_ShortFrameworkVersion>$(TargetFramework.Substring($(_ShortFrameworkIdentifier.Length)))
-
-
- .NETStandard
- .NETCoreApp
- .NETFramework
-
-
v$(_ShortFrameworkVersion)
@@ -67,6 +60,20 @@ Copyright (c) .NET Foundation. All rights reserved.
v$(_ShortFrameworkVersion[0]).$(_ShortFrameworkVersion[1])
v$(_ShortFrameworkVersion[0]).$(_ShortFrameworkVersion[1]).$(_ShortFrameworkVersion[2])
+
+
+
+ .NETStandard
+ .NETCoreApp
+
+
+ .NETFramework
+ .NETCoreApp
+
+
+