Monthly Archives: July 2006

DynamicMethod revisited: Making Powershell handle arbitrary delegates

  As I posted on Monday, Powershell doesn’t let you cast a scriptblock to a delegate with a signature other than void (Object, Object). Jeffrey Snover confirmed this the same day. When I learned that this was a limitation in … Continue reading

Posted in Powershell | 74 Comments

Powershell can’t do arbitrary-signature delegates?

I was asked the other day how to handle authentication in NSvn with Powershell. The scripts I’ve shown up until now([1], [2] have used the NSvn.Core.AuthenticationProvider.GetWindowsSimpleProvider() method to provide authentication when required by Subversion. Subversion uses a concept of “authentication … Continue reading

Posted in Powershell | 41 Comments

Ankh: Why doesn’t “Add Solution To Repository” add all my projects?

The ”Add Solution To Subversion Repository” command in Ankh seems to be one of the greatest sources of confusion among Ankh users. They will often try to import one of their solutions and find that one or more of the … Continue reading

Posted in AnkhSVN | 27 Comments

NSvn and Powershell: Log messages

All NSvn.Core.Client methods that modify the repository directly require a log message. These include MakeDir, Commit, Import, Move, PropDel, PropEdit and PropSet. To provide a log message using NSvn, you need to handle the Client.LogMessage event and set the Message … Continue reading

Posted in Powershell | 40 Comments

Setting the .NET environment for a Powershell prompt

VS.NET installs a shortcut that, when invoked, sets the necessary environment variables you need to access the command line tools that comes with VS and the .NET and brings up a command prompt. The shortcut leads to a batch file … Continue reading

Posted in Powershell | 42 Comments

Test

Testing, trying to blog from Onenote 2007 beta (and doing the Technorati thing…).     Technorati Profile

Posted in Uncategorized | 3 Comments

The ”Members” and ”Types” dropdowns in VS.NET

The code editor window in VS.NET has two dropdowns on top, one containing the types present in the current file and the other containing the members present in that file. This is a pretty good idea, and makes it easy … Continue reading

Posted in .NET | 8 Comments

Powershell script blocks as .NET event handlers

Scott Hanselman posts an interesting script where he uses the NSvn library (the .NET wrapper library for Subversion we wrote for AnkhSVN) directly from Powershell to either checkout from a Subversion repository or update an existing working copy. This is … Continue reading

Posted in Powershell | 30 Comments