I'm getting the following error on build...
Could not precompile the input file contents. Ensure that a generator declaration exists in the cshtml file.
A generator declaration is the first line of your cshtml file and looks like this:
@* Generator: MvcHelper *@
Valid host names: MvcHelper, MvcView, Template, WebPagesHelper, WebPage, RazorGenerator.Core.IHostProvider
I posted this issue under Discussions, but am opening up an issue so I can attach a sample project. The error occurs as soon as I drop a _ViewStart.cshtml file into the root of my project.
Comments: Thanks for the repro. I pushed out a new version of the package to fix this issue - https://www.nuget.org/packages/RazorGenerator.MsBuild/2.1.4
Could not precompile the input file contents. Ensure that a generator declaration exists in the cshtml file.
A generator declaration is the first line of your cshtml file and looks like this:
@* Generator: MvcHelper *@
Valid host names: MvcHelper, MvcView, Template, WebPagesHelper, WebPage, RazorGenerator.Core.IHostProvider
I posted this issue under Discussions, but am opening up an issue so I can attach a sample project. The error occurs as soon as I drop a _ViewStart.cshtml file into the root of my project.
Comments: Thanks for the repro. I pushed out a new version of the package to fix this issue - https://www.nuget.org/packages/RazorGenerator.MsBuild/2.1.4