Skip to content

Commit

Permalink
Merge pull request #1088 from dotnetcore/issue-#1087-FreeSql.Generator
Browse files Browse the repository at this point in the history
 #1087 FreeSql.Generator 在mac系统提示信息乱码,去掉 Console.OutputEncoding = gb2312
  • Loading branch information
2881099 authored Apr 26, 2022
2 parents 814f82a + 49a47a9 commit dcf7b96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 193 deletions.
20 changes: 10 additions & 10 deletions Extensions/FreeSql.Generator/ConsoleApp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@ class ConsoleApp
public ConsoleApp(string[] args, ManualResetEvent wait)
{
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
var gb2312 = Encoding.GetEncoding("GB2312");
if (gb2312 != null)
{
try
{
Console.OutputEncoding = gb2312;
Console.InputEncoding = gb2312;
}
catch { }
}
//var gb2312 = Encoding.GetEncoding("GB2312");
//if (gb2312 != null)
//{
// try
// {
// Console.OutputEncoding = gb2312;
// Console.InputEncoding = gb2312;
// }
// catch { }
//}

//var ntjson = Assembly.LoadFile(@"C:\Users\28810\Desktop\testfreesql\bin\Debug\netcoreapp2.2\publish\testfreesql.dll");

Expand Down
183 changes: 0 additions & 183 deletions FreeSql/FreeSql.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dcf7b96

Please sign in to comment.