Cannot find reference assembly 'Microsoft.AspNetCore.Antiforgery.dll' while using a FileProviders in net core 3 #14418
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
Milestone
Hi, i have a library that render views and with the html makes a pdf.
When using the Physical Views (the ones that you have in the project) everything works fine.
But when using the fileprovider i get the following error, this was working fine in 2.1
I have tried some debuggin of the .net libraries and the farthest i can go without breaking was here.
The code is in this repo https://github.com/fpanaccia/Wkhtmltopdf.NetCore.Example.git and the branch is feature/3.0
namespace Microsoft.AspNetCore.Mvc.Razor.Compilation
internal class DefaultRazorPageFactoryProvider : IRazorPageFactoryProvider
public RazorPageFactoryResult CreateFactory(string relativePath)
line 44 var viewDescriptor = compileTask.GetAwaiter().GetResult();
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Render the View and make the pdf (this is the result with the view in the project) it should have the same result

The text was updated successfully, but these errors were encountered: