|  |  |  | 
|---|
|  |  |  | foreach (VCFile fileInFilter in (IVCCollection)generatedFiles.Files) { | 
|---|
|  |  |  | if (fileInFilter.Name == moccedFileName) { | 
|---|
|  |  |  | foreach (VCFileConfiguration config in (IVCCollection)fileInFilter.FileConfigurations) { | 
|---|
|  |  |  | if (HelperFunctions.IsConfExcludeFromSolution(config)) | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | var exclude = true; | 
|---|
|  |  |  | var vcConfig = config.ProjectConfiguration as VCConfiguration; | 
|---|
|  |  |  | if (hasDifferentMocFilesPerConfig && hasDifferentMocFilesPerPlatform) { | 
|---|
|  |  |  | 
|---|
|  |  |  | foreach (VCFile f in (IVCCollection)filt.Files) { | 
|---|
|  |  |  | if (f.Name == moccedFileName) { | 
|---|
|  |  |  | foreach (VCFileConfiguration config in (IVCCollection)f.FileConfigurations) { | 
|---|
|  |  |  | if (HelperFunctions.IsConfExcludeFromSolution(config)) | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | var vcConfig = config.ProjectConfiguration as VCConfiguration; | 
|---|
|  |  |  | var filterToLookFor = string.Empty; | 
|---|
|  |  |  | if (hasDifferentMocFilesPerConfig) | 
|---|
|  |  |  | 
|---|
|  |  |  | if (filter != null) { | 
|---|
|  |  |  | foreach (VCFile file in filter.Files as IVCCollection) { | 
|---|
|  |  |  | foreach (VCFileConfiguration config in file.FileConfigurations as IVCCollection) { | 
|---|
|  |  |  | if (HelperFunctions.IsConfExcludeFromSolution(config)) | 
|---|
|  |  |  | continue; | 
|---|
|  |  |  | var tool = new QtCustomBuildTool(config); | 
|---|
|  |  |  | var commandLine = tool.CommandLine; | 
|---|
|  |  |  | if (!string.IsNullOrEmpty(commandLine) && commandLine.Contains("moc.exe")) { | 
|---|