PowerShell Team has announced FxCop rules for cmdlet authors. List of rules AcceptForceParameterWhenCallingShouldContinue AllCmdletsShouldAcceptPipelineInput CallShouldProcessOnlyIfDeclaringSupport DefineCmdletInTheCorrectNamespace DoNotAccessPipelineParametersOutsideProcessRecord DoNotCallCertainHostMethods DoNotUseConsoleApi FollowCmdletClassNamingConvention OverrideProcessRecordIfAcceptingPipelineInput ParameterShouldHaveConsistentTypePerNoun UseCredentialAttributeForPSCredentialParameter UseOnlyApprovedCharactersInVerbsAndNouns UseOnlyStandardVerbs UsePascalCasingInVerbsAndNouns UseRecommendedParameterTypes UseSingularNouns UseSingularParameterNames UseSwitchParameterInsteadOfBoolean
Archives for March 2010
Dock TweetDeck to the side of your screen with PowerShell
I wanted to post this last night but I did not have an internet connection. The best part about being a developer is that when software drives you nuts, many times you can do something about it that mere mortals cannot. That’s the case with TweetDeck. I love it but I am sick of having [...]
WPF : Using Markup Extensions to generate content with icons
It’s way too hard to get an image next to the text content of a Button, TextBlock, ListBoxItem, TreeViewItem, etc. Coming from a Windows Forms background where many controls had an Image property for displaying a small glyph next to text content, I am constantly frustrated by the verbose XAML required to achieve the same [...]
Windows 7 PowerShell Tip
If you’re a system administrator (or like many developers), chances are you use PowerShell a lot and have the PowerShell console or PowerShell ISE on your Windows 7 taskbar. On Windows Vista and on Windows Server 2008 prior to R2 I was annoyed by having both ISE and console on the quick launch bar or [...]
Accept simple mathematical expressions in Silverlight text boxes
Download MathEvalConverter.zip Background With the name Einstein, people typically assume I’m good at math. I have the utmost respect for the physicists and mathemeticians of our time, prior, and beyond. But to be honest, math is not my strong suit. In fact I have great difficulty simply adding or subtracting numbers without the use of [...]
Excellent WPF performance tips on the Visual Studio Blog
These aren’t your typical, obvious tips. Head over to the Visual Studio Blog to learn some WPF performance tips that the team picked up during the development of Visual Studio 2010. Some of the performance issues required changes to WPF that we all will benefit from in .NET 4. Others are clever ways to work [...]
Posts