首页 新闻 会员 周边 捐助

EF Core 2.2.2 源码 build nuget 包出错

0
悬赏园豆:30 [已解决问题] 解决于 2019-04-06 17:27

从 github 上下载 Entity Framework 2.2.2 的源代码, 运行 build /t:Package 生成 nuget 包,出现6个错误:

C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,28): error CS1010: Newline in constant [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,39): error CS1003: Syntax error, ',' expected [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,28): error CS1010: Newline in constant [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,39): error CS1003: Syntax error, ',' expected [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,28): error CS1010: Newline in constant [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\TestModels\ConcurrencyModel\F1Context.cs(527,39): error CS1003: Syntax error, ',' expected [C:\Dev\github\EntityFrameworkCore-2.2.2\EntityFrameworkCore-2.2.2\src\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj]
    97 Warning(s)
    6 Error(s)

请问如何解决?

dudu的主页 dudu | 高人七级 | 园豆:30734
提问于:2019-04-06 15:40
< >
分享
最佳答案
1

是 F1Context.cs 文件 527 行 的拉丁字母引起的

Name = "Marc Gené"

用 Sublime Text 打开 F1Context.cs 文件并以 utf-8 编码保存后问题解决

dudu | 高人七级 |园豆:30734 | 2019-04-06 16:12
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册