private static void BuildServer() { string folderName = UtilFramework.FolderName + "Application.Server/"; string folderNamePublish = UtilFramework.FolderName + "Application.Server/bin/Debug/net5.0/publish/"; UtilCli.FolderNameDelete(folderNamePublish); UtilFramework.Assert(!Directory.Exists(folderNamePublish), "Delete folder failed!"); UtilCli.DotNet(folderName, "publish"); // Use publish instead to build. UtilFramework.Assert(Directory.Exists(folderNamePublish), "Deploy failed!"); ConfigServerPublish(); }