Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.
Your profile
Tag cloud
.net .net 4.0 asp.net asp.net mvc azure backup book bug business intelligence c# cloud computing community database dmv excel google gotcha help high availability how to howto interview linq mirroring mvc nhibernate nunit performance programming reportviewer rhino mocks security silverlight sql sql friday sql server sql server 2000 sql server 2005 sql server 2008 sql server 2008 r2 ssis structuremap t-sql tip trick vb.net visual studio 2010 vmware windows 7 wpf
Authors
- SQLDenis (297)

- chrissie1 (234)

- Ted Krueger (onpnt) (130)

- George Mastros (35)

- Alex Ullrich (29)

- tarwn (28)

- naomi (11)

- thatrickguy (11)

- chaospandion (8)

- ca8msm (8)

- damber (7)

- emtucifor (7)

- More...
Main Categories
Search
Google Ads
Tags: nunit
Today I decided it was time to set some of my projects to use .Net 4 instead of .Net 3.5 and I felt the pain.
First, I had some trouble with my barcodereader framework which was built for .Net 1.1. No problem, I quickly changed it over with another framework I like better and which is built for .Net 4.0.
Then I committed and I broke the built :-(. The test projects I had converted to .net 4.0. would not build anymore.
System.BadImageFormatException: Could not load file or assembly 'C:\Visual studio projects\TDB2009\Projects\TDB2009.View.Menu.TestC\bin\De...
I was running into this error when running my Nunit-tests.
Executing : C:\Program Files\NUnit 2.5.2\bin\net-2.0\nunit-console.exe
With Command Line : TDB2009.View.Test.C.dll
NUnit version 2.5.2.9222
Copyright (C) 2002-2009 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.Runtime Environment -
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2
CLR Version: 2.0.50727.3...
In some cases, you want to have a file in your Startupfolder that you want to access from within your application. Perhaps an XML-file with application settings or an image that can be changed.
In most cases the application startuppath will be in program files so you don't really want to put too much stuff in there but from time to time, you might.
And I always like to test if the pesky file is configured right, so that it appears as a file in that folder.
For example, if I have an image that has this as a path:
Like the title says An nUnit testfixture file template for resharper that also conforms to stylecop laws. Here it is.
Life can be so simple sometimes but you just have to think about it.
I found it very cool when Sean Feldman posted this CategoryAttribute. Yeah I know the title doesn't say everything and the post iskinda short but very sweet to me. More DRYness to play with.
Now let me translate his post into VB.Net.
How not to do it.
:: Next >>


LTD Social Sitings
Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.