After the May changes to RazorGenerator.target for Work Item 59, the build fails if the csproj manually specifies the list of cshtml files to precompile. This is because the RazorOutputFiles list is built using %(RecursiveDir) which is missing if you specify the source file in the standard csproj format like <RazorSrcFiles Include="Views\Home\NewUser.cshtml" />. This is because RecursiveDir only pays attention to the ** part of the include which is not present when the files are manually included. I believe the way to fix it is to use %(RelativeDir) instead of %(RecursiveDir).
↧