Jul 17, 2013, 4:41 AM
[CLOSED] Current trunk changes require MVC in build
Ext.Net\Ext.Net\Utility\ScriptBuilders\BaseScriptB uilder.cs
New section of code needs to be wraped in #if MVC
MVC creates requirement for distribution of MVC dlls onto production servers even if just using WebForms.
protected virtual void RestoreResourceManager()
{
Page page = null;
bool isMVC = Ext.Net.MVC.MvcResourceManager.IsMVC; // COMPILE ERROR: NOT DEFINED if MVC not defined
if (HttpContext.Current != null && HttpContext.Current.CurrentHandler is Page)
{
page = (Page)HttpContext.Current.CurrentHandler;
page.Items[typeof(ResourceManager)] = this.oldRM;
if (!isMVC && page is System.Web.Mvc.ViewPage) // COMPILE ERROR: NOT PRESENT if MVC not defined
{
isMVC = true;
}
}
if (isMVC)
{
HttpContext.Current.Items[typeof(ResourceManager)] = this.oldRM;
}
}
New section of code needs to be wraped in #if MVC
MVC creates requirement for distribution of MVC dlls onto production servers even if just using WebForms.
Last edited by Daniil; Jul 17, 2013 at 4:06 PM.
Reason: [CLOSED]