Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-226519: Xml comment within #if ... #endif

$
0
0
Reporter Alex Berezoutsky (fergard) Alex Berezoutsky (fergard)
Created Mar 10, 2011 5:27:23 PM
Updated Jan 26, 2012 5:12:16 PM
Resolved Jan 26, 2012 1:47:57 PM
Priority Normal
Type Bug
Fix versions 6.1
State Fixed
Assignee Evgeny Pasynkov (pasynkov)
Subsystem No subsystem
Affected versions 5.1.3
Fixed in build 6.5.1.3491
I have encountered with the situation where Resharper show notifications "Xml comment is not placed on a valid language element" where xml comment is inside #if ... #endif section that is currently switched off.

I believe it should watch for #if sections and avoid any checks inside them. .

//#define macro 
namespace ConsoleApplication1
{
    class Program
    {
        static void Main()
        {
#if macro 
            X();
#endif
        }
#if macro 
        /// <summary>
        /// Method x
        /// </summary>
        private static void X()
        {
            
        }
#endif 
    }
}

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>