Current filter:
                                You should refresh the page.
                                  • Trying to setup a template with Dependent Namespaces.  It seems that the functionality does not take into account Namespace Aliases.  It just keeps adding more entries in code file each time template is executed.

                                    using AcadApp = Autodesk.AutoCAD.ApplicationServices.Application;
                                    using AcAp = Autodesk.AutoCAD.ApplicationServices;
                                    using AcCm = Autodesk.AutoCAD.Colors;
                                    using AcDb = Autodesk.AutoCAD.DatabaseServices;
                                    using AcEd = Autodesk.AutoCAD.EditorInput;
                                    using AcGe = Autodesk.AutoCAD.Geometry;
                                    using AcGi = Autodesk.AutoCAD.GraphicsInterface;
                                    using AcLy = Autodesk.AutoCAD.LayerManager;
                                    using AcPl = Autodesk.AutoCAD.PlottingServices;
                                    using AcRx = Autodesk.AutoCAD.Runtime;
                                    using AcWi = Autodesk.AutoCAD.Windows;

                                    I heavily use aliases to help prevent namespace clashes.  When I issue a template with Dependent Namespaces, I get duplicated namespace references because CodeRush isn't seeing the existing references due to aliases.

                                • Pavel A (DevExpress) 09.29.2016

                                  Hello,

                                  Thank you for pointing out this issue.

                                  Regarding CodeRush for Roslyn, it does not add a new using on my side. However, it also does not use the existing alias and as a result produces non-compilable code.
                                  I have attached a screencast that illustrates the behavior on my side. I have created a separate ticket for this: CodeRush for Roslyn does not use existing alias for dependent namespaces when expanding a template.

                                  Would you provide with us a screencast that illustrates the behavior on your side? You can capture it using a free Jing tool from TechSmith.

                                  We look forward to your response.

                                • Ronnie Wilkins Jr 10.03.2016

                                  Here is a screen cast showing templates without dependent namespace and with dependent namespace

                                • Pavel A (DevExpress) 10.04.2016

                                  Hello Ronnie,

                                  Thank you for providing the screencast.

                                  We agree that we should not add the same using statement with an alias in this case.

                                  We will research this issue and notify you as soon as we make any progress.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: