[236] Web Application Project
Hi,
I've been using the new "Web Application Project" project type for a
while now, and R# has never been really happy with that, but with the
new 236 build it all got worse:
WAP project type:
http://msdn.microsoft.com/asp.net/reference/infrastructure/wap/default.aspx
Issues:
- Controls in pages with the same classnames as controls in the
System.Web.UI.WebControls namespace (like Button, Table, etc) are all
marked as 'ambigious references' with the System.Web.UI.WebControls
namespace.
- All Controls with runat="server" are marked with a message "Hides
field from class "
- namespaces and prefixes for pages and controls declarations in the
web.config are not recognized:
]]>
My previous feature request that it would be nice to be able to disable
resharper for other than *.cs files still stands (at least for the EAP
stage).
Thanks!
Please sign in to leave a comment.
Wiebe,
See my comments inline
bug, fixed in 237
Web Application project has a slightly different file structure comparing to
VS2005 standard web project. We should support it. Could You submit a
request for thin into the tracker?
>
prefixes should be recognized. Could You create a small sample for us?
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>
>
>
>
Hi Wiebe,
I just reported the last issie you have, you can vote for it here :
http://www.intellij.net/tracker/resharper/viewSCR?publicId=23335
Cheers,
Tom Pester
>> - Controls in pages with the same classnames as controls in the
>> System.Web.UI.WebControls namespace (like Button, Table, etc) are all
>> marked as 'ambigious references' with the System.Web.UI.WebControls
>> namespace.
>>
>> - All Controls with runat="server" are marked with a message "Hides
>> field from class "
>>
>> - namespaces and prefixes for pages and controls declarations in the
>> web.config are not recognized:
>>
>> >> >> >> >> >> >> > tagPrefix="my"/> >> >> >> ]]>
subj
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Ths! You can get some sleep now ;)
Cheers,
Tom Pester
Hi Sergey,
I've attached a solution that shows all of the problems (in 236 at least).
http://www.intellij.net/forums/thread.jspa?threadID=217806&tstart=0
I'm not sure which ones are solved yet in 237, but if you can give it a
try i'd appreciate it.
Thanks, Wiebe Tijsma
Sergey V. Coox (JetBrains) wrote:
>>- Controls in pages with the same classnames as controls in the
>>System.Web.UI.WebControls namespace (like Button, Table, etc) are all
>>marked as 'ambigious references' with the System.Web.UI.WebControls
>>namespace.
>>- All Controls with runat="server" are marked with a message "Hides field
>>from class "
>>- namespaces and prefixes for pages and controls declarations in the
>>web.config are not recognized:
>>
>> >> >> >> >> >> >> >tagPrefix="my"/> >> >> >>]]>
Hi Sergey,
I've noticed it really varies which attributes are added to the @Page
directive:
Inherits="ResharperErrors.Website._Default"
CodeFileBaseClass="ResharperErrors.Website._Default"
CodeFile="Default.aspx.cs"
CodeBehind="Default.aspx.cs"
The file will run with all of them, but removing some of the attributes
will produce very different results (run- and compile time it all works
anyway).
Wiebe Tijsma wrote:
>> Wiebe,
>> See my comments inline
>>
>>
>>> - Controls in pages with the same classnames as controls in the
>>> System.Web.UI.WebControls namespace (like Button, Table, etc) are all
>>> marked as 'ambigious references' with the System.Web.UI.WebControls
>>> namespace.
>>
>>
>> bug, fixed in 237
>>
>>
>>> - All Controls with runat="server" are marked with a message "Hides
>>> field from class "
>>
>>
>> Web Application project has a slightly different file structure
>> comparing to VS2005 standard web project. We should support it. Could
>> You submit a request for thin into the tracker?
>>
>>
>>> - namespaces and prefixes for pages and controls declarations in the
>>> web.config are not recognized:
>>>
>>> >>> >>> >>> >>> >>> >>> >> tagPrefix="my"/> >>> >>> >>> >> >> >> prefixes should be recognized. Could You create a small sample for us? >>]]>
Wiebe,
I know, it should be a bit confusing, but for previous type of web
applications these attribute really change the behavior.
Thanks a lot for the solution, I reproduced the problem, but didn't mahage
to complete the fix by build 237. This will definitely be fixed in 238.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Sergey,
Now when I open my test solution with all attributes in the page
directive, (just to mess up R#, sorry for that) I get an exception:
http://www.intellij.net/forums/thread.jspa?threadID=218191
(issues #23697 - #23699)
And no R# code analysis (the little square next to the scrollbar stays gray)
Page attribute:
Inherits="ResharperErrors.Website._Default"
CodeFileBaseClass="ResharperErrors.Website._Default"
CodeFile="Default.aspx.cs"
CodeBehind="Default.aspx.cs"
Sergey V. Coox (JetBrains) wrote:
Weber,
I have broken the global tagprefixes support in 237. We'll make a fix ASAP.
--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
wiebe,
with web application project you have to use Codebehind and not Codefile. Using codefile will result in an aspx compiled together with the code behind (like with web site) on top of that code behind being already compiled in the web assembly (containing all code behinds and other web project classes).
Keeping the codefile after switching to web project gave me some strange runtime errors on members with internal visibility.
Regards,
Erwin