1) Would addressing #3 by allowing a specific list of views to precompile suffice? To sepcifically address 3, we should be able to look at Content ItemGroup in the csproj file to determine the views rather than using a directory scan.
2) We recently made some tweaks to the MsBuild task to not recompile views if the view files hadn't changed since the last time the generated files were created. Were there alternate heuristics you were considering for the input file? Wouldn't addressing
#3 also address this scenario if you did have alternate methods for determining what needed to be precompiled?
The specific list of views, especially just by filtering *.cshtml out of the existing Content ItemGroup would be perfect.
I did not test this to see if unchanged files caused a recompile but did not see that the msbuild-way of doing this (defining inputs and outputs for the build target) was implemented so was not aware there was custom code inside the generator task to do
this. As long as this capability is there, that is perfect. But you may save yourself some coding if you can just use what msbuild already provides.
Thanks for the quick response!