本文整理匯總了C#中MonoDevelop.Projects.ProjectReferenceEventArgs類的典型用法代碼示例。如果您正苦於以下問題:C# ProjectReferenceEventArgs類的具體用法?C# ProjectReferenceEventArgs怎麽用?C# ProjectReferenceEventArgs使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ProjectReferenceEventArgs類屬於MonoDevelop.Projects命名空間,在下文中一共展示了ProjectReferenceEventArgs類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: OnReferenceAdded
static void OnReferenceAdded(object o, ProjectReferenceEventArgs args)
{
if (!Util.IsQyotoReference(args.ProjectReference))
return;
Project project = args.Project as DotNetProject;
if (project != null && project.ExtendedProperties["QyotoDesignInfo"] == null)
QyotoDesignInfo.EnableProject(project);
}
示例2: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
base.OnReferenceAddedToProject (e);
if (Project.Loading)
return;
if (RequiresMicrosoftBuild && e.ProjectReference.ReferenceType == ReferenceType.Project) {
EnsureReferencedProjectsRequireMSBuild (true);
}
}
示例3: OnReferenceRemoved
static void OnReferenceRemoved(object o, ProjectReferenceEventArgs args)
{
if (!Util.IsQyotoReference(args.ProjectReference))
return;
DotNetProject dnp = args.Project as DotNetProject;
if (dnp != null) {
if (MonoDevelop.Core.Gui.MessageService.Confirm("Qyoto features will be disabled by removing the qt-dotnet reference.", new MonoDevelop.Core.Gui.AlertButton("Disable Qyoto")))
QyotoDesignInfo.DisableProject(dnp);
else
dnp.References.Add(new ProjectReference(ReferenceType.Gac, args.ProjectReference.StoredReference));
}
}
示例4: OnRemoveReference
void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
{
ITreeBuilder tb = Context.GetTreeBuilder (e.Project);
if (tb != null) {
if (tb.FindChild (e.ProjectReference, true))
tb.Remove ();
}
}
示例5: OnReferenceRemoved
void OnReferenceRemoved (object ob, ProjectReferenceEventArgs args)
{
if (disposed || !librariesUpdated)
return;
string pref = GetReferenceLibraryPath (args.ProjectReference);
if (pref != null) {
gproject.RemoveWidgetLibrary (pref);
SaveProject (false);
}
}
示例6: OnReferenceChanged
void OnReferenceChanged (object s, ProjectReferenceEventArgs args)
{
if (args.Project.ParentSolution == folder.ParentSolution && NUnitProjectTestSuite.IsNUnitReference (args.ProjectReference))
UpdateTests ();
}
示例7: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
findPipelineEntries(e.ProjectReference);
base.OnReferenceAddedToProject(e);
}
示例8: OnReferenceRemoved
static void OnReferenceRemoved (object o, ProjectReferenceEventArgs args)
{
if (updating || !IsGtkReference (args.ProjectReference))
return;
DotNetProject dnp = args.Project as DotNetProject;
if (MessageService.Confirm (GettextCatalog.GetString ("The Gtk# User Interface designer will be disabled by removing the gtk-sharp reference."), new AlertButton (GettextCatalog.GetString ("Disable Designer"))))
GtkDesignInfo.DisableProject (dnp);
else
dnp.References.Add (new ProjectReference (ReferenceType.Gac, args.ProjectReference.StoredReference));
}
示例9: OnRemoveReference
void OnRemoveReference (object sender, ProjectReferenceEventArgs e)
{
var p = e.Project as DotNetProject;
if (p != null) {
ITreeBuilder tb = Context.GetTreeBuilder (p.References);
if (tb != null && tb.FindChild (e.ProjectReference, true))
tb.Remove ();
}
}
示例10: OnReferenceAddedToProject
protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
base.OnReferenceAddedToProject (e);
DotNetProject project = GetDotNetProject (e.ProjectReference);
if (project != null) {
EnsureBuildPackagingNuGetPackageIsInstalled (project);
}
}
示例11: OnAddReference
void OnAddReference(object sender, ProjectReferenceEventArgs e)
{
var p = e.Project as AbstractDProject;
if (p != null) {
var tb = Context.GetTreeBuilder (p.References);
if (tb != null)
tb.AddChild (e.ProjectReference);
}
}
示例12: OnReferenceRemovedFromProject
protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
{
//short-circuit if the project is being deserialised
if (Project.Loading) {
base.OnReferenceAddedToProject (e);
return;
}
UpdateWebConfigRefs ();
base.OnReferenceRemovedFromProject (e);
}
示例13: OnReferenceRemovedFromProject
internal protected override void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
{
Project.OnReferenceRemovedFromProject (e);
}
示例14: OnReferenceAddedToProject
internal protected override void OnReferenceAddedToProject (ProjectReferenceEventArgs e)
{
Project.OnReferenceAddedToProject (e);
}
示例15: OnReferenceRemovedFromProject
internal protected virtual void OnReferenceRemovedFromProject (ProjectReferenceEventArgs e)
{
next.OnReferenceRemovedFromProject (e);
}