"Sort Namespace References" rearranges "using" statements, but not their corresponding comments.
For example, I typically comment my "using" statements, as "using log4net; // for LogManager, ILog".
After a "Sort Namespace References" of the "using" area, the "using log4net;" will be re-ordered to a different location, but the "// for …" comment will wind up on a different (and inappropriate) "using" statement.
For example:
-- Before "Sort Namespace References":
using Microsoft.VisualBasic.Devices;
using System;
using System.Collections.Generic; // for List
using System.IO.Ports; // for Computer
using System.Reflection; // for MethodBase
using Microsoft.VisualBasic;
using log4net; // for LogManager, ILog
-- After "Sort Namespace References":
using System;
using System.Collections.Generic;
using System.IO.Ports; // for List
using System.Reflection; // for Computer
using log4net; // for MethodBase
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.Devices; // for LogManager, ILog
Hi Wayne,
Thanks for the code snippets.
We are working on this issue now and will notify you when we have any results.
Hi Wayne,
We fixed this issue and will later add a hotfix to this ticket.