0
今日、Windows 7の最新バージョンのASP.NET Core 1.0およびVS2015 Update 3(6月27日リリース)をインストールしました。そして、MS記事に続き、this step of the articleで次のエラーが発生しました:Scafolding EF Core 1.0から既存のDbへのエラー
Unable to find expected assembly attribute named DesignTimeProviderServicesAttribute in provider assembly Microsoft.EntityFrameworkCore. This attribute is required to identify the class which acts as the design-time service provider factory.
次のように私のコマンドは次のとおりです。
Scaffold-DbContext "Server=MyComputerName\SQL2012;Database=northwind;Trusted_Connection=True;" -OutputDir ".\Models" Microsoft.EntityFrameworkCore
project.jsonファイル1項
"tools": {
"BundlerMinifier.Core": "2.0.238",
"Microsoft.AspNetCore.Razor.Tools": "1.0.0-preview2-final",
"Microsoft.AspNetCore.Server.IISIntegration.Tools": "1.0.0-preview2-final",
"Microsoft.EntityFrameworkCore.Tools": "1.0.0-preview2-final",
"Microsoft.Extensions.SecretManager.Tools": "1.0.0-preview2-final",
"Microsoft.VisualStudio.Web.CodeGeneration.Tools": {
"version": "1.0.0-preview2-final",
"imports": [
"portable-net45+win8"
]
}
},
上記のASP.NET CoreおよびVS2015 Update 3リリースのSQL Express 2014を使用したwin 8.1では、上記の記事のすべての手順をエラーなく正常に実行できます。