Skip to content
This repository has been archived by the owner on Feb 23, 2021. It is now read-only.

RazorViewToStringRenderer partial views not working. #283

Closed
alextof opened this issue Nov 7, 2018 · 1 comment
Closed

RazorViewToStringRenderer partial views not working. #283

alextof opened this issue Nov 7, 2018 · 1 comment

Comments

@alextof
Copy link

alextof commented Nov 7, 2018

I've implemented successfully the RazorViewToStringRenderer in a NET Core 2.1 Console Application but looks like the view that I'm trying to render has got trouble finding partial views even if the path is correct.

Index.cshtml

<partial name="~/Views/Tevreden/Template/_Pages/_Message" />

I've installed all the MVC Dependencies and configured the services correctly. The Index.cshtml without the partial view works fine.

@alextof
Copy link
Author

alextof commented Nov 8, 2018

My bad, needed to configure RazorViewEngineOptions correctly and set up my Razor UI Library the correct structure folder Areas > MyFeature > Pages

@pranavkm pranavkm closed this as completed Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants