Skip to content

Commit 8e165dc

Browse files
committed
加上 .NET 11 的支持
1 parent 91812ba commit 8e165dc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Code/UsingMSBuildCopyOutputFileToFastDebug/TargetFrameworkChecker.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,11 @@ private static DotNetType GetTargetFrameworkDotNetType(string targetFramework)
175175
return DotNetType.Net10;
176176
}
177177

178+
if (targetFramework.Contains("net11."))
179+
{
180+
return DotNetType.Net11;
181+
}
182+
178183
if (Regex.IsMatch(targetFramework, @"net\d"))
179184
{
180185
return DotNetType.NetCore;
@@ -212,5 +217,6 @@ public enum DotNetType
212217
Net8 = 1 << 18 | NetCore,
213218
Net9 = 1 << 19 | NetCore,
214219
Net10 = 1 << 20 | NetCore,
220+
Net11 = 1 << 21 | NetCore,
215221
}
216222
}

0 commit comments

Comments
 (0)