Bạn có thể cập nhật bằng tay tệp .csproj và thêm <MvcBuildViews>true</MvcBuildViews>
để biên dịch các chế độ xem khi bạn thực hiện.
Đây là liên kết I googled, bạn cũng sẽ tìm thấy những người khác.
CHỈNH SỬA: Nếu quá chậm hãy thử đặt bản dựng chỉ dành cho Bản phát hành, hãy chỉnh sửa tệp csproj làm việc như thế này; xem tài liệu cho AspNetCompiler để biết thêm chi tiết.
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
-->
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
<AspNetCompiler VirtualPath="Temp" PhysicalPath="$(ProjectDir)\..\$(ProjectName)" />
</Target>
Câu hỏi hay về thực tế, tôi không bận tâm khi biết điều này. – Kezzer