-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added further extension methods to make them more readable.
Preparing for 3.0 -> IVsUpdateSolutionEvents
- Loading branch information
1 parent
70932b1
commit 3a680f8
Showing
8 changed files
with
115 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Microsoft.Build.Framework; | ||
|
||
namespace BuildVision.Helpers | ||
{ | ||
public static class BuildEventContextExtensions | ||
{ | ||
public static bool IsBuildEventContextInvalid(this BuildEventContext bec) | ||
{ | ||
return (bec == null | ||
|| bec == BuildEventContext.Invalid | ||
|| bec.ProjectContextId == BuildEventContext.InvalidProjectContextId | ||
|| bec.ProjectInstanceId == BuildEventContext.InvalidProjectInstanceId); | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
src/BuildVision/Helpers/BuildMessageEventArgsExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using BuildVision.Tool.Building; | ||
using Microsoft.Build.Framework; | ||
|
||
namespace BuildVision.Helpers | ||
{ | ||
public static class BuildMessageEventArgsExtensions | ||
{ | ||
public static bool IsUserMessage(this BuildMessageEventArgs message, BuildOutputLogger loggerSender) | ||
{ | ||
return (message.Importance == MessageImportance.High && loggerSender.IsVerbosityAtLeast(LoggerVerbosity.Minimal)) | ||
|| (message.Importance == MessageImportance.Normal && loggerSender.IsVerbosityAtLeast(LoggerVerbosity.Normal)) | ||
|| (message.Importance == MessageImportance.Low && loggerSender.IsVerbosityAtLeast(LoggerVerbosity.Detailed)); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters