Re: Exclude files and references from build

Microsoft Visual Studio .NET

HI Olivier,

No, references and files are set per project, not per project configuration. 
You would need a macro or add-in to do the exclusion through automation for 
the desired configuration.
Hi Olivier,

Well, on my web site there is a section for add-in developers with tons of 
info. There is a HOWTO article to iterate the projects and files of a 
solution. Once you are familiar with the EnvDTE.Project and 
EnvDTE.ProjectItem, you can exclude a file using ProjectItem.Remove. Notice 
that there is another ProjectItem.Delete that will erase the file but you 
donĀ“t want this.