私はaspnet core v1.0.1アプリケーションを持っており、モデル/マイグレーションを別のアセンブリに展開しました。私は新しいモデルを追加したが、私はこのエラーを取得する足場とコントローラを作成しようとすると:aspnet core codegeneratorがスキャフォールドコントローラを作成できません
Finding the generator 'controller'...
Running the generator 'controller'...
Attempting to compile the application in memory
There was an error creating/modifying a DbContext, there was no type returned after compiling the new assembly successfully
at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.<BuildCommandLine>b__6_0()
at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args)
返されなかったタイプを知っていると便利だろうが。
DOTNETコマンドは次のとおりです。
"C:\Program Files\dotnet\dotnet.exe" aspnet-codegenerator --project "C:\Projects\CompetitionScores\src\CSWebSite" controller --force --controllerName ClubsController --model CompetitionScores.Data.Models.Club --dataContext CompetitionScores.Data.CompetitionScoresDbContext --relativeFolderPath Controllers --controllerNamespace CSWebSite.Controllers --referenceScriptLibraries --useDefaultLayout
私はこの問題を解決することができますどのように任意のアイデア?
私はコードを自分で打ち込みました。私は別のプロジェクトを作って、それが何を生み出すのか見てみましょう。 –