Following this question , I now set up precompiled views in my main asp.net application, which compiles to the DLL from the command line, using the following
dotnet razor-precompile
teams. Then I packed it as a nuget package using
dotnet pack
and added the package as a reference to the Ive project, from which the submissions were filmed. Then I created a new class that implements IViewLocationExpanderand sets this in the method of setup.csmy project, and I see that it is looking for a new location for the views. However, I do not know what to put as the search path for the precompiled view, since there are no .cshtml files there. I just get InvalidOperationExceptionwith a view not found.
Has anyone done this before or was able to suggest how can I add these precompiled views to the search path?
thank
source
share