Should DTE be avoided? #66
-
I've been thinking about this for a while, but it's probably more important now that Visual Studio 2022 is here. Should using the For example, to get all of the projects in the solution, you can use I was under the impression that DTE was old, outdated and possibly not as efficient as using the other services because of all the COM overhead. Is that right? Should we try to avoid it as much as possible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 23 replies
-
Yes, the DTE should be avoided, but that has been hard due to the complexity of the alternatives. I'm in the middle of converting some of the events in the toolkit away from the DTE events. |
Beta Was this translation helpful? Give feedback.
-
A few pennies regarding IMHO, At first, I was thinking maybe As mentioned previously, I'm not sure it is wise to expose I noticed in the IVsHierarchy doc, it states
Therefore, I wonder if we should create different types of When it comes to guidance on avoiding I'm still reading up on all this so take it as "thoughts from a newbie" 😄 |
Beta Was this translation helpful? Give feedback.
-
The toolkit is now completely free from any |
Beta Was this translation helpful? Give feedback.
Yes, the DTE should be avoided, but that has been hard due to the complexity of the alternatives. I'm in the middle of converting some of the events in the toolkit away from the DTE events.