Beispiel #1
0
 /// <summary>
 /// Saves pending changes to the project file.
 /// </summary>
 public virtual void Save()
 {
     ErrorHandler.ThrowOnFailure(HierarchyNode
                                 .GetServiceProvider()
                                 .GetService <SVsSolution, IVsSolution>()
                                 .SaveSolutionElement(
                                     (uint)__VSSLNSAVEOPTIONS.SLNSAVEOPT_ForceSave,
                                     HierarchyNode.HierarchyIdentity.Hierarchy,
                                     0));
 }
Beispiel #2
0
        /// <summary>
        /// Saves pending changes to the project file.
        /// </summary>
        public virtual void Save()
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            ErrorHandler.ThrowOnFailure(HierarchyNode
                                        .GetServiceProvider()
                                        .GetService <SVsSolution, IVsSolution>()
                                        .SaveSolutionElement(
                                            (uint)__VSSLNSAVEOPTIONS.SLNSAVEOPT_ForceSave,
                                            base.Hierarchy /* do not use the flavor hierarchy */,
                                            0));
        }