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