Tuesday, March 06, 2007

Fix for Could not load NUnit.core error

Spent a few hours today trying to find out why i suddenly started getting

System.IO.FileNotFoundException: Could not load file or assembly 'nunit.core, Version:2.2 ......' or one of its dependencies.

Turns out there was the config file was not valid xml. so if the nunit project was MyProject.nunit and then the config file MyProject.config had invalid xml content.

Friday, January 05, 2007

Here's some powershell script/command to find who is logged in on a RemoteMachine.

Get-WmiObject -computerName ComputerName -class Win32_ComputerSystem -Property UserName | findstr UserName

Wednesday, January 03, 2007

Finding dependencies for .net assemblies

Have you had .net assembly version mismatch problems?
How do you find which assembly is referencing an older version of some shared assembly?

Here is a powershell script to list out all the dependencies for all the files in given folder (typically bin/debug or bin/release)
Get script here

what it does is really easy and i must give credit to this guy