File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Code/UsingMSBuildCopyOutputFileToFastDebug Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ private static DotNetType GetExecutableFileDotNetType(FileInfo targetExecutableF
5252 }
5353
5454 // 如果存在 config 文件,那就是 .NET Framework 的版本了
55- return TryGetDotNetFrameworkVersion ( targetExecutableFile ) ?? DotNetType . NetFramework ;
55+ return TryGetDotNetFrameworkVersion ( targetExecutableFile ) ?? DotNetType . NetFramework ;
5656 }
5757
5858 private static DotNetType ? TryGetDotNetFrameworkVersion ( FileInfo targetExecutableFile )
@@ -170,6 +170,11 @@ private static DotNetType GetTargetFrameworkDotNetType(string targetFramework)
170170 return DotNetType . Net9 ;
171171 }
172172
173+ if ( targetFramework . Contains ( "net10." ) )
174+ {
175+ return DotNetType . Net10 ;
176+ }
177+
173178 if ( Regex . IsMatch ( targetFramework , @"net\d" ) )
174179 {
175180 return DotNetType . NetCore ;
@@ -206,5 +211,6 @@ public enum DotNetType
206211 Net7 = 1 << 17 | NetCore ,
207212 Net8 = 1 << 18 | NetCore ,
208213 Net9 = 1 << 19 | NetCore ,
214+ Net10 = 1 << 20 | NetCore ,
209215 }
210216}
You can’t perform that action at this time.
0 commit comments