它看起来像是System.Data.SqlClient
在Windows上运行时在dnxcore50中定义的,而不是在Linux上运行的.
它们不是corefx吗?
例如,一个针对dnxcore50 beta7或beta8的应用程序和引用System.Data.SqlClient
将在Windows中构建并运行良好,但在Linux上只能在执行时编译正常运行此运行时错误;
An unhandled exception has occurred: Could not load file or assembly
'System.Data.SqlClient, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
The system cannot find the file specified.
Run Code Online (Sandbox Code Playgroud)
ASP.NET 5 RC1SqlClient
现在是跨平台的,因此您也可以从 Linux 和 Mac 查询 Microsoft SQL Server。
更多信息请参见下面的发行说明(查找跨平台 SQL 客户端)
http://blogs.msdn.com/b/webdev/archive/2015/11/18/announcing-asp-net-5-release-candidate-1.aspx
归档时间: |
|
查看次数: |
283 次 |
最近记录: |