CS1003: Syntax error, '>' expected in Razor

I just add the line twice, and deleted... problem solved!

@model MyApp.Core.ViewModels.LayoutViewModel
@model MyApp.Core.ViewModels.Layout_OrOther_Model

Try to compile, you get an error (only one model blah, blah..) Delete one of them.

@model MyApp.Core.ViewModels.LayoutViewModel

Compile.

That works for me!


Compare and contrast:

Layout

@model MyApp.Core.ViewModels.LayoutViewModel

Index

@model MyApp.Core.ViewModels.Home.IndexViewModel;

Got it yet? Here's the answer:

one of them has a ; which shouldn't be there