I found in the 4.0.62 release doc , The ServiceStack.Razor NuGet package has also been upgraded to be able to use the official Microsoft.AspNet.Razor。So is there anyway can use the mvc and ServiceStack.Razor in one project ? like Nancy adding to an existing site
You could always use ServiceStack and MVC together you just have to host ServiceStack at a different path, v4.0.62 doesn’t change that, MVC still hijacks Razor views prohibiting ServiceStack.Razor from using it.
I Know this way. But I want to use the Markdown Razor and the MVC, Is there anyway can to solve it ?
You can use Markdown Razor but this isn’t Razor, it’s our built-in View Engine in ServiceStack (not ServiceStack.Razor) that has a
If you host ServiceStack at
/api you’ll need to resolve it from there, e.g. you can access a
page.md in your project folder with:
You can’t use ServiceStack.Razor with MVC.
so the below path is possible?
/api/home.cshtml use ServiceStack.Razor
/home/index use mvc.razor
No. You can’t use ServiceStack.Razor with MVC.