Solution to the "Could not find file 'Microsoft.Windows.CommonLanguageRuntime error" for testprojects
Here is the solution to my previous posting Could not find file
‘Microsoft.Windows.CommonLanguageRuntime error for
testprojects.
As always it is simple when you know how. You simply uncheck the Enable
ClickOnce security settings-checkbox under
Projects->Properties->Security.
A better solution is the extract the code that is to be tested to an own
project, but I’ll use the above for now. We’re
only using ClickOnce for testing environments.
Read More
TypeMock - an introduction
I my
next project (which is mega-cool, I’ll get back) i will start using TDD
from the outset, which seems to be the only way to get it to work. To do
that we’ll need a mocking framework and the flavor of the month seems to
be TypeMock.
There are not many very good introductions on the net but here are some
that are the best so far:
Unit test patterns, part
I,
II and
III
Some examples and how-tos
that also seems to be good
PS
Following a really fast answer (ca 4 hours after my posting) from the
TypeMock-team (this Internet thingy is so cool, isn’t it) i want to add
two movies:
Getting
started
Decorators
Read More
Whose line is it anyway?
I ran
into an old friend during the weekend. This is an old (80s?) show with
improvisation theatre as game between four comedians. It is hilarious!
I met this program again on YouTube. There are loads of clips
there. Start
here.
Here is one of them that made me laugh out loud.
Read More
Could not find file 'Microsoft.Windows.CommonLanguageRuntime error for testprojects
We have encountered a quite annoying bug when creating a test
project that references a Windows application. The Windows
application have been deployed via ClickOnce and that when the testproject
stopped compiling.
In the test project we got the “Could not find file
‘Microsoft.Windows.CommonLanguageRuntime” error message on compilation.
Here is an article describing that problem:
http://support.microsoft.com/kb/907757. No very good solution though.
I’ll post out solution in a while.
The solution seems to be to set a reference to the .exe instead of the
projectfile. However we ran into some trouble with that also - a better
solution is on it’s way…
Read More
Moving items in a CheckedListBox
This is a very common requirement in applications and one that i always need to think a few extra minutes (hours, if you want) before i get it. The GUI contains a CheckedListBox (or any other list) and the user want to be able to move the items up and down in the list. Yes i know - it seems trivial at first… Here is one solution that uses a single method that is called with a parameter to indicate if the item is to be moved up or down. ’’’ ‘’’ Moves an item in the listbox ‘’’ Private Sub MoveItemInListbox(ByVal up As Boolean) ‘ Check that something is selected If chklst.SelectedItem Is Nothing Then MessageBox.Show(“Nothing selected”) Exit Sub End If ‘ No flicker - on ' Remember the selected stuff, index, the item itself and if the item is ' checked or not Dim selectedIndex As Integer =...
Read More
Recording with the Vasa Band
Phew - the weekend has really been intense with a CD-recording as the major happening. Also our prayer group was in charge of the Sunday morning meeting which was a success but quite different from an ordinary Salvation Army meeting. The band has performed at a very high and consistent level through out the weekend. I am so proud of the band! This is very much an amateur band and still we manage to play very well and to record quite a lot of material during the weekend. These pieces were recorded: Herren vår Gud - fanfare preludium by Andreas Holmlund Onward - disco upbeat song by Andreas Låt din Altarglöd beröra mig - meditative piece by Andreas O hur Saligt - short song arrangement by Hans Nordin Take up thy cross - another meditative piece by Erik Leidzén. Very hard to pull off. Este es el Dia - latin...
Read More
New life!
Things are settling down over here again… After a week at home with
Albert (the most probable name of our son) we are now actually thinking
that we might make it. ;)
There are so many clichés about becoming a parent but it is really
something that you can’t imagine. You are tossed between loving the
child - sometimes too much even - to becoming very frustrated because
you can’t understand him.
Abbe (
I am really suprised that this is not talked about more. From a small
empirical investigation it seems that most childs have this problem.
Well this “problem” is small in comparision to the joy of having the
child. We love him! It’s quite amazing how you can feel so much about a
child that you just met 10 days ago… But he is really the apple of our
eye.
Read More
A son is born!
Finally - after 9 months our baby has arrived. It is the most wonderful
little boy you can imagine and we are so grateful for having him into
our life.
Here are some pictures of him.
Right now we are quite tired also, so i’ll get back with details later
on. A very quick thank you to all the people that have prayed for, warm
thougt
Read More
Rhetorics - a good start
I’ve
always been fascinating on how to do a good presentation or how to
persuade an audience. My usual way to do this is to study the subject
and to get a good feel about it - i know that i am much better on topics
i really have a passion for. And then i often spoils the whole thing by
taking to much or to fast.
But here are, in Swedish, a very good site for people like me, who might
need a brushing in the theoretical way of how to
construct a good presentation:
http://www.falkman.se/
Note the guide under “Retoriska Verktyg”
Read More
Time to come down?
It seems
like our baby is on it’s way. Elin has become sick (nothing too serious)
in way that usually leads to the labour is started in a artificial way.
We are not too worried but it is really exciting that the nine months
are closing in to an end.
So perhaps the next time i write anything here i will be a father!
Amazing to think about. We hope that everything will go well and that i
soon can report any pictures on the little wonder.
Until then - or …
Read More