/// <summary> /// Notifies listening clients that the project has been opened. /// </summary> /// <param name="pHierarchy">[in] Pointer to the <see cref="T:Microsoft.VisualStudio.Shell.Interop.IVsHierarchy" /> interface of the project being loaded.</param> /// <param name="fAdded">[in] true if the project is added to the solution after the solution is opened. false if the project is added to the solution while the solution is being opened.</param> /// <returns> /// If the method succeeds, it returns <see cref="F:Microsoft.VisualStudio.VSConstants.S_OK" />. If it fails, it returns an error code. /// </returns> public int OnAfterOpenProject(IVsHierarchy pHierarchy, int fAdded) { if (Options.Options.NestTransformationFiles) { Logger.LogInfo(Resources.NestingFiles); var project = SolutionHelper.GetProjectFromHierarchy(pHierarchy); ConfigFileNester.NestConfigurationFilesInProject(project); ConfigFileNester.NestConfigurationFilesInSolution(); } return(VSConstants.S_OK); }