From ea75f46af30a224dfce2f32c6b2a9ec4768aa4a8 Mon Sep 17 00:00:00 2001 From: nsnail Date: Fri, 9 Dec 2022 11:57:12 +0800 Subject: [PATCH] =?UTF-8?q?=20+=20text=E5=B7=A5=E5=85=B7=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E5=9C=A8=E6=B5=8F=E8=A7=88=E5=99=A8=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot.sln | 3 +++ src/Text/Main.cs | 4 ++++ src/dot.csproj | 10 +--------- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dot.sln b/dot.sln index 9fcfc80..cfd8c5b 100644 --- a/dot.sln +++ b/dot.sln @@ -25,6 +25,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "meta", "meta", "{AD79881E-7 README.md = README.md README.zh-CN.md = README.zh-CN.md safe-delete-unused-resx.ahk = safe-delete-unused-resx.ahk + switch-nuget.ps1 = switch-nuget.ps1 + switch-project.ps1 = switch-project.ps1 + switcher.json = switcher.json EndProjectSection EndProject Global diff --git a/src/Text/Main.cs b/src/Text/Main.cs index 9e571e3..f60b2e8 100644 --- a/src/Text/Main.cs +++ b/src/Text/Main.cs @@ -1,3 +1,4 @@ +using System.Diagnostics; using System.Security.Cryptography; using System.Text; using NSExt.Extensions; @@ -97,6 +98,9 @@ html-encode: {o.HtmlEncode} html-decode: {o.HtmlDecode} """; Console.WriteLine(outputTemp); + var file = Path.Combine(Path.GetTempPath(), $"{System.Guid.NewGuid()}.html"); + File.WriteAllText(file, outputTemp.Text2Html()); + Process.Start("explorer", file); } protected override async Task Core() diff --git a/src/dot.csproj b/src/dot.csproj index 7c8019d..f496f29 100644 --- a/src/dot.csproj +++ b/src/dot.csproj @@ -1,5 +1,4 @@ - Exe net7.0-windows @@ -14,30 +13,23 @@ git 功能全面的实用工具 - 程序员的瑞士军刀 - true - true - - + - - PublicResXFileCodeGenerator Str.Designer.cs - - \ No newline at end of file