diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2019-02-18 11:34:22 +0300 |
---|---|---|
committer | Lluis Sanchez <llsan@microsoft.com> | 2019-02-18 15:16:03 +0300 |
commit | beefb16bf980e0c843312969cde2e9a0eebe8bc3 (patch) | |
tree | f47d71e171b5d9e1ec209af0c67811cd70e62d6d /main/src/addins/AspNet | |
parent | 4971b9d3563fa4660e022177194263803df9d968 (diff) |
Track API changes
Diffstat (limited to 'main/src/addins/AspNet')
-rw-r--r-- | main/src/addins/AspNet/WebForms/WebFormsToolboxNode.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/src/addins/AspNet/WebForms/WebFormsToolboxNode.cs b/main/src/addins/AspNet/WebForms/WebFormsToolboxNode.cs index 2d7c8c3a28..0a0ec73240 100644 --- a/main/src/addins/AspNet/WebForms/WebFormsToolboxNode.cs +++ b/main/src/addins/AspNet/WebForms/WebFormsToolboxNode.cs @@ -89,9 +89,9 @@ namespace MonoDevelop.AspNet.WebForms return code; } - void RegisterReference (MonoDevelop.Projects.Project project) + void RegisterReference (MonoDevelop.Projects.DotNetProject project) { - var dnp = (MonoDevelop.Projects.DotNetProject) project; + var dnp = project; var pr = base.Type.GetProjectReference (); //add the reference if it doesn't match an existing one @@ -121,7 +121,7 @@ namespace MonoDevelop.AspNet.WebForms //register the assembly and look up the class //FIXME: only do this on the insert, not the preview - or remove it afterwards - RegisterReference (document.Project); + RegisterReference ((MonoDevelop.Projects.DotNetProject) document.Owner); var database = document.GetCompilationAsync ().Result; @@ -166,7 +166,7 @@ namespace MonoDevelop.AspNet.WebForms } var clrVersion = ClrVersion.Net_2_0; - var aspProj = document.Project as DotNetProject; + var aspProj = document.Owner as DotNetProject; if (aspProj != null && aspProj.TargetFramework.ClrVersion != ClrVersion.Default) clrVersion = aspProj.TargetFramework.ClrVersion; |