Project
ReSharper
Priority
Show-stopper
Type
Feature
Fix versions
6.0
State
Fixed
Assignee
Sergey Coox
Subsystem
No subsystem
Affected versions
6.0 EAP, 5.1.3
Fixed in build
6.0.2152.479  
  • Created by   James Kovacs
    13 months ago (15 Apr 2011 19:04)
  • Updated by   Sergey Coox
    12 months ago (16 May 2011 17:20)
 
RSRP-256900 Import Type Completion fails for Web.config files
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
Create a new ASP.NET MVC 3 project and edit the web.config file. Add the following:

<appSettings>
<add key="Foo" value="Home<CTRL-ALT-Space>

ReSharper displays "Start typing prefix to show type name completion".

Rename the file to App.config and repeat. ReSharper offers HomeController as a completion. Pressing enter results in:

<appSettings>
<add key="Foo" value="MvcApplication1.Controllers.HomeController"/>

Renaming the file back to Web.config causes import type completion to fail again.
Comments (1)
 
History
 
Linked Issues (?)
 
TeamCity Changes (2)
 
James Kovacs
  James Kovacs
15 Apr 2011 19:12
13 months ago
Just tried something else. If you copy the Web.config file into a Class Library or Console project, Import Type Completion works even when the file is named "Web.config". The bug only happens if the Web.config file is in an ASP.NET project type in VS2010. I haven't checked whether the issue exists in VS2008.