aspnet / RazorTooling

Razor tooling for Visual Studio 2015
Other
23 stars 17 forks source link

IRazorViewEngine does not pick updated cshtml #121

Closed KhalilMohammad closed 6 years ago

KhalilMohammad commented 6 years ago

I am converting cshtml to pdf. I am using IRazorViewEngine. IRazorViewEngine is picking old view. Dotnet watch does not work for this scenario. Is there any work around, I have multiple cshtml to work on

KhalilMohammad commented 6 years ago

I am using RazorViewToStringRenderer

mkArtakMSFT commented 6 years ago

Thanks for contacting us, @KhalilMohammad. @NTaylorMullen , can you please look into this one? Thanks!

NTaylorMullen commented 6 years ago

@KhalilMohammad how are you using RazorViewToStringRenderer? Aka, are you lifting that method directly into your site? That samples normal usage scenario is run once and then it goes away (an exe) so i'll need more context 😄

KhalilMohammad commented 6 years ago

I use this generate pdf from html. In production ,It will be run once. In development, I need to change html to get perfect alignment.

mkArtakMSFT commented 6 years ago

@KhalilMohammad, can you please provide a repro project to simplify the investigation?

mkArtakMSFT commented 6 years ago

This issue was moved to aspnet/Razor#2305