I am writing an addin that generates classes. The classes are saved as files to the project file structure and added using the AddFromFile method. This works fine, but a new window is opened for each addition. As the number of classes generated are in the hundreds, the windows have to be closed. This is not a problem in itself, but it triples the running time of the addin and causes flickering in the UI.
So how should I add new files to the project without opening a window? And if that is not possible, how could I turn off UI updates in Visual Studio while the addin is running?
Any help appreciated!
We are changing the issue type to “Comment” because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question” by editing your initial post and changing the radio button at the top of the post editor window. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.
I have seen the same behaviour for managed package. that can be easily reproduced on IronPython sample. To do that:
Run IP sample from Visual Studio
Create new project
Create in Windows Explorer several files in newly created project root directory
Return back into Visual Studio and Add Existing Items to the project
As a result - ALL ADDING ITEMS WILL BE OPENED IN TEXT EDITORS AREA.
So the issue is not resolved. I undestand I should submit that on Microsft Connect but I just have no enough time now. Anybody, please do that if you do.