I have a problem using Resharper Solution-wide analysis and code completion features when woking on .ascx controls. My control is located in separate project in the same solution. All view files (aspx and ascx) are xcopied to target directory as a post-build task. The project is of class library type, but the problem exists if it is Web project, too. In my control .ascx file I'm specifying from what the control inherits and trying to use view model like this:
<%@ Assembly Name="WebEngine.CommonViews" %>
<%@ Assembly Name="WebEngine.Infrastructure" %>
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<WebEngine.Infrastructure.SettingsViewModel<System.Collections.Generic.IEnumerable<WebEngine.Infrastructure.News>, WebEngine.Infrastructure.NewsListSettings>>" %>
Assembly names, namespaces, type names are correct, the project references needed assemblies and everything compiles and runs OK. Resharper marks Control tag red with error "Cannot resolve symbol". And all code references in the .ascx file are red, too, so I have no code completion at all.
I am using JetBrains ReSharper 5.1 C# Edition
Build 5.1.1753.4 on 2010-10-15T16:51:30
Am I doing something wrong? Is it known issue? Is there any workaround for the problem?
Thanks in advance.