/// <summary> /// When a reference is removed/changed, let the provider know /// </summary> /// <param name="reference">Reference being removed</param> void ReferencesEvents_ReferenceRemoved(VSLangProj.Reference reference) { // Because our provider only has an AddReference method and no way to // remove them, we end up having to recreate it. provider = new IronPython.CodeDom.PythonProvider(); if (vsproject.References != null) { foreach (VSLangProj.Reference currentReference in vsproject.References) { provider.AddReference(currentReference.Path); } } }
/// <summary> /// When a reference is removed/changed, let the provider know /// </summary> /// <param name="reference">Reference being removed</param> void ReferencesEvents_ReferenceRemoved(VSLangProj.Reference reference) { // Because our provider only has an AddReference method and no way to // remove them, we end up having to recreate it. provider = new IronPython.CodeDom.PythonProvider(); if (vsproject.References != null) { foreach (VSLangProj.Reference currentReference in vsproject.References) { provider.AddReference(currentReference.Path); } } }
/// <summary> /// When a reference is added, add it to the provider /// </summary> /// <param name="reference">Reference being added</param> void ReferencesEvents_ReferenceAdded(VSLangProj.Reference reference) { provider.AddReference(reference.Path); }