There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
Multi-file speed suggestion
For whatever reason, generating a file from a template is a very slow process. I don't know if this is normal or not, but it seems like it is. Here's what I'm assuming about T4 Toolbox and how I suggest to improve the speed:
I'm assuming that the way T4 Toolbox is effectively re-adding the file to the project each time it is generated. I think Visual Studio then does whatever it does when a file is added. If this is normally not a slow process then perhaps the slowness is caused
by Resharper re-parsing the file or by Visual Studio parsing the XAML or perhaps by one of my add ins.
At any rate, I noticed that the Entity Framework template library that is available in Visual Studio 2010
isn't slow in the case when the file already exists (i.e. after it builds the first time). I looked through this library, and discovered that the reason for this is because it actually compares the contents that it is about to write to a file with
the contents that are already there. If they are the same then it leaves the original file alone.
Apparently the process of generating the file into memory, reading the original file into memory, and then comparing the two strings is faster than adding a file to a project in Visual Studio (at least for me). In fact, I'd say at least 10x faster.
Could you change T4 Toolbox to work like this, as well? Waiting for all of my files to generate is becoming very time consuming.