RazorEngine用於在ASP.NET MVC4應用程序中運行C#Razor視圖。 視圖中包含包裹自定義格式的函數調用小數表達式像 <div>@Format(somedecimalexpression/someotherdecimalexpression)</div>
這將導致異常 Attempted to divide by zero
如果someotherdecimalexpres
我有單獨的dll與控制器和視圖(與通常的文件夾結構)。這裏是我的自定義視圖引擎: public class SettingsViewEngine : RazorViewEngine
{
public SettingsViewEngine()
{
//if I commit this nothing changes
MasterLocationForma