签出 EFCore 源码,用 build.cmd 命令进行编译,总是出现下面的错误:C:\Dev\github\EntityFrameworkCore\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(526,28): error CS1010: Newline in constant用 VS2017 打开 F1Context.cs 文件,会出现下面的提示:Some bytes have been replaced with the Unicode substitution character while loading file C:\Dev\github\EntityFrameworkCore\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs with Chinese Simplified (GB2312) encoding. Saving the file will not preserve the original file contents.被 VS2017 转码后,F1Context.cs 中出现乱码new TestDriver
{
Name = "Marc Gen?,
TeamId = Team.Ferrari,
CarNumber = null,编译错误就是因为乱码引起的。请问如何解决这个问题?
1 回答
qq_笑_17
TA贡献1818条经验 获得超7个赞
打开 Control Panel
-> Clock, Language, and Region
,进入 Region
-> Administrative
,将 Language for non-Unicode programs
由 Chinese(Simplified, China)
改为 English(United States)
,问题解决。
- 1 回答
- 0 关注
- 573 浏览
添加回答
举报
0/150
提交
取消