懒得勤快 11 miesięcy temu
rodzic
commit
a170d380ab

+ 3 - 2
src/Masuit.MyBlogs.Core/PrepareStartup.cs

@@ -22,6 +22,7 @@ using System.Net;
 using System.Text.RegularExpressions;
 using System.Web;
 using SameSiteMode = Microsoft.AspNetCore.Http.SameSiteMode;
+using Windows = Masuit.Tools.Win32.Windows;
 
 namespace Masuit.MyBlogs.Core
 {
@@ -56,7 +57,7 @@ namespace Masuit.MyBlogs.Core
                     }));
                 });
                 Console.WriteLine($"导入自定义词库完成,耗时{time}s");
-                Windows.ClearMemorySilent();
+                Masuit.Tools.Win32.Windows.ClearMemorySilent();
                 are.Set();
             });
 
@@ -217,4 +218,4 @@ namespace Masuit.MyBlogs.Core
             return user.IsAdmin;
         }
     }
-}
+}

+ 1 - 1
src/Masuit.MyBlogs.Core/Properties/PublishProfiles/FolderProfile.pubxml

@@ -12,7 +12,7 @@
     <SiteUrlToLaunchAfterPublish />
     <LaunchSiteAfterPublish>true</LaunchSiteAfterPublish>
     <ExcludeApp_Data>false</ExcludeApp_Data>
-    <TargetFramework>net8.0</TargetFramework>
+    <TargetFramework>net9.0</TargetFramework>
     <ProjectGuid>2f8270e4-5e57-4ce4-ab5f-8008f9fc8c7c</ProjectGuid>
     <SelfContained>false</SelfContained>
     <publishUrl>bin\Release\publish\</publishUrl>