This issue has been created from an NNTP article.
Hello Dmitry,
Ilya is correct. In a recent v3 EAP build, R# would provide intellisense on certain .Net types that were not yet referenced in the project. R# provided intellisense for the item and then underlined the code in red, stating that a reference needed to be added to a system assembly (it also indicates which assembly).
I have done a bit more research on this. The build that had this feature working was almost certainly 423.
Specifically, I had a a solution containing an ASP.NET project and a class library. The ASP.NET project automatically includes a reference to System.Configuration (although I do not know how relevant the presence of this referernce was to the feature).
In the class library that had no reference to the System.Configuration assembly, typing [b]WebConfig[/b] followed by [b]<Ctrl><Alt><SpaceBar>[/b] brought up an auto-completion list that contained an entry for [b]WebConfigurationManager[/b].
In the latest stable EAP build (447), under the same test, a completion item for ConfigurationManager is not available.
Also, it would be very, very useful to have this feature documented somewhere. How does it work? What unreferenced assemblies does it reach out to?
I think the following functionality would be useful:
1/ Reach out and provided intellisense (using Ctrl+Alt+Spacebar) to all unreferenced assemblies that are listed in the .Net tab of the Add Reference dialog.
2/ Reach out and provided intellisense (using Ctrl+Alt+Spacebar) to all unreferenced projects in the solution.
3/ Instead of providing a red squigly with text informing that a reference needs to be added, actually have R# prompt and add the reference to the project using the same model as the automatic help for importing namespaces. (Obviously, assembly references for assemblies outside of the solution and project references for projects).
4/ My solutions often contain a folder that holds 3rd party assemblies to ensure that all developers are referencing the correct version of these assemblies. It would be great if R# could be configured to look for these assemblies (most likely scenario is to give R# a solution folder name that can be searched).
Sample files attached. See Class1.cs