Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs')
-rw-r--r--main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs19
1 files changed, 17 insertions, 2 deletions
diff --git a/main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs b/main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs
index ac1a6ccb6c..494eae7723 100644
--- a/main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs
+++ b/main/src/addins/AspNet/WebForms/WebFormsRegistrationCache.cs
@@ -38,9 +38,9 @@ using MonoDevelop.AspNet.Projects;
namespace MonoDevelop.AspNet.WebForms
{
- class WebFormsRegistrationCache : ProjectFileCache<AspNetAppProject,RegistrationInfo>
+ class WebFormsRegistrationCache : ProjectFileCache<DotNetProject,RegistrationInfo>
{
- public WebFormsRegistrationCache (AspNetAppProject project) : base (project)
+ public WebFormsRegistrationCache (DotNetProject project) : base (project)
{
}
@@ -135,6 +135,16 @@ namespace MonoDevelop.AspNet.WebForms
info.Namespaces.AddRange (defaultNamespaces.Select (ns => new NamespaceRegistration (true, ns)));
info.Assemblies.AddRange (defaultAssemblies.Select (asm => new AssemblyRegistration (true, asm)));
+
+ // from Mono's 4.5 machine web.config
+ info.Controls.AddRange (new [] {
+ MachineControlReg ("asp", "System.Web.UI.WebControls.WebParts", "System.Web"),
+ MachineControlReg ("asp", "System.Web.UI", "System.Web.Extensions"),
+ MachineControlReg ("asp", "System.Web.UI.WebControls", "System.Web.Extensions"),
+ MachineControlReg ("asp", "System.Web.UI.WebControls.Expressions", "System.Web.Extensions"),
+ MachineControlReg ("asp", "System.Web.DynamicData", "System.Web.DynamicData"),
+ MachineControlReg ("asp", "System.Web.UI.WebControls", "System.Web.Entity"),
+ });
return info;
}
@@ -171,6 +181,11 @@ namespace MonoDevelop.AspNet.WebForms
"System.Web.UI.WebControls.WebParts",
};
+ static ControlRegistration MachineControlReg(string prefix, string ns, string asm)
+ {
+ return new ControlRegistration (null, true, prefix, ns, asm, null, null);
+ }
+
public static bool IsDefaultReference (string reference)
{
return defaultAssemblies.Any (r =>