[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!

10 comments
Comment actions Permalink

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:

>

<system.web>
<pages>
<namespaces>
<add namespace="MyNameSpace.UI"/>
</namespaces>
<controls>
<add namespace="MyNameSpace.UI" assembly="MyAssembly.UI"
tagPrefix="my"/>
</controls>
</pages>
</system.web>

prefixes should be recognized. Could You create a small sample for us?

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>
>
>

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!



0
Comment actions Permalink

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

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?



0
Comment actions Permalink

subj

--
Sergey V. Coox
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

Ths! You can get some sleep now ;)

Cheers,
Tom Pester

subj



0
Comment actions Permalink

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:

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?

0
Comment actions Permalink

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:

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:

>> 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? >>]]>

0
Comment actions Permalink

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!"


0
Comment actions Permalink

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:

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.

0
Comment actions Permalink

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!"


0
Comment actions Permalink

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

0

Please sign in to leave a comment.