Hi
I use service stack razor to implement my website now. But there is a issue to add a new cshtml.
-
when i want to add a new cshtml, i right click my project, and select Add->razor view
-
after add a new cshtml file, i find VS add these packages in my project.
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" /> <package id="Microsoft.AspNet.Mvc.zh-Hans" version="5.2.3" targetFramework="net45" /> <package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" /> <package id="Microsoft.AspNet.Razor.zh-Hans" version="3.2.3" targetFramework="net45" /> <package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" /> <package id="Microsoft.AspNet.WebPages.zh-Hans" version="3.2.3" targetFramework="net45" /> <package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
-
and then when i run my project, my default.cshtml is just downloaded by browser.
-
remove System.Web.Razor and System.Web.WebPages.Razor, web site work again.
So i want to know how to add a new cshtml file, and why System.Web.Razor break ServiceStack.Razor.