0

我将 vs2015 与 .net5.0 一起使用 - SqlCredential 在 DNX 4.5.1 中有效,但在 DNX Core 5.0 中无效,即使我在下面添加了这一行(在 dnxcore50 部分下)到依赖项

“System.Data.SqlClient”:“4.0.0-rc2-23819”

仍然从编译器收到错误消息。

4

1 回答 1

2

https://github.com/dotnet/corefx/issues/6948#event-592420962

我也在 GitHub 上发布了这个问题 - 答案“System.Security.SecureString 不再存在于 .Net 核心中,因为 SqlClient 无法支持 SqlCredential”

很高兴知道 .net 核心现在不支持它,稍后会重新访问

于 2016-03-17T13:10:23.690 回答