Monday, November 30, 2009

Copying the current working directory to the clipboard in PowerShell

To copy the current working directory to the clipboard, use the following command:

(get-location).ToString() | out-clipboard
Or:
(get-location).ToString() | clip

The first method requires the PowerShell Community Extensions. The second requires clip.exe, which is present on Vista (and newer) OSs, or older OSs with some resource kits installed.

Another useful trick is to start Windows Explorer in the current folder:

explorer .

Thursday, November 5, 2009

Frameworks and tools for Silverlight

To keep track of the ballooning list of frameworks and helpers that are required or helpful when working with Silverlight and/or WPF, I've started a list (in no particular order) here:

1 Silverlight Tools for VS 2008 SP1
2 Composite WPF and Silverlight (Prism)
3 Silverlight Toolkit
4 RIA Services
5 Silverlight Unit Test Framework
6 This Microsoft hotfix for a problem with unit tests in projects contained in the same solution as a Silverlight project.

Useful control toolkits:
1. Dev-express Silverlight DataGrid
2. Visifire open source data visualisation tools (charting)
3. Blacklight

Hopefully VS 2010 will roll some of these up and they won't have to be downloaded separately.