Apart from unloading the project, I don't believe you can do this. Why does the T4 build the project file? To add source files? If so, can you make it take a filter, such as <Compiler Include="*.cs" />?
From: [email protected] [mailto:[email protected]] On Behalf Of Stephen Price Sent: Wednesday, June 23, 2010 10:44 PM To: ozDotNet Subject: Generated project files Hi all, One of our project files is being generated from a tt file, and each time I do a build the project file is replaced. This triggers the IDE to reload the project file while its doing a build. Anyone know a way to have it automatically ignore or load the project file and not ask me? (just for this one project file). Please note this was not my idea, nor do I like it. It's caught me out twice now, wondering why files I've added to the project suddenly are not in the project when I build. Not to mention the reloading (see nag) of the project file during a build. Kind of hoping there's a property setting somewhere or maybe a build order/dependency thing. cheers, Stephen
