0
RegisterViewModelを更新してローカルでテストしたところ、自分のサイトがダウンして正常に動作しました。モデルのクラスが紺色で更新されていない
'RegisterViewModel' does not contain a definition for 'Notifications'
詳細こちら:
An unhandled exception has occurred: One or more compilation failures occurred:
3cmgspbk.ncu(571,3721): error CS1031: Type expected
3cmgspbk.ncu(571,3935): error CS1031: Type expected
3cmgspbk.ncu(571,3777): error CS1061: 'RegisterViewModel' does not contain a definition for 'Notifications' and no extension method 'Notifications' accepting a first argument of type 'RegisterViewModel' could be found (are you missing a using directive or an assembly reference?)
3cmgspbk.ncu(571,3991): error CS1061: 'RegisterViewModel' does not contain a definition for 'Notifications' and no extension method 'Notifications' accepting a first argument of type 'RegisterViewModel' could be found (are you missing a using directive or an assembly reference?)
Microsoft.AspNetCore.Mvc.Razor.Compilation.CompilationFailedException: One or more compilation failures occurred:
問題を理解するために詳細が必要です。エラーはどこで発生しますか?スタックトレースとは何ですか?関連するコードを共有できますか? –
私は登録フォームにフィールドを追加し、それを通知と呼びました。誰かが登録フォームを開くたびに、このエラーがログに記録されるので、私は青空でビューモデルを作成しようとするたびにこれを持っています。 azureのmodelsフォルダの下でモデルクラス(.cs)を更新する方法はありますか? – Techy
@NateBarbettini私は質問を更新しました。ありがとう。 – Techy