Is there any way can use the mvc and ServiceStack.Razor in one project?

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 .md extension.

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:

/api/page.md

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
@mythz

老早看到你了,我还以为你是阿里的。。。…

No. You can’t use ServiceStack.Razor with MVC.

:smile: ,没这个本事到阿里。这个软件还是很好的,这个论坛的回复也很及时的。