June 2009 Blog Posts

Class Libraries do not work in Windows Azure using Visual Studio 2010

If you create a class library and add a reference to it from an Azure Web Role or Azure Worker Role you get an error. Here’s how to get around it. The problem is that the class library template for Visual Studio 2010 creates a .csproj file with too few configuration settings. In Visual Studio 2008 the default target platform is AnyCPU. In Visual Studio 2010 it’s x86 and the configuration for AnyCPU is not included. It seems to me this is an error in Visual Studio 2010 Beta 1. This is what a standard .csproj file excerpt...

Bing serves more information on your search results

At a moment of weakness I promised to use Bing for a month. That was a promise that even brought the connection to my blog server down: Funny Story: The day Scott Hanselman dosed my blog I would just like to say that I’ve remained true to my word and a month has almost passed. For comparison I’ve searched some times both on Bing and “the almighty”. The main issue with Bing is that the search results are smaller and less accurate than the big guys. Small wonder but still! The real question becomes if we want one almighty...

Microsoft Security Essentials Beta available

My colleague Håkan pointed me last night to the Beta of Microsoft Security Essentials. I’ve installed it and it’s now running on my machine. To get it you first have to pass by the Microsoft Connect Gal in a form. I have no idea what that model got paid for putting her face on Microsoft...

Only the new version (10.0.0.0) of Microsoft Test Tools work in Visual Studio 2010

Tests fail when you reference the wrong version of Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll in Visual Studio 2010. I just tried to run a suite of tests in Visual Studio 2010 that had a reference to the 9.0.0.0 version of Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll. It turned out that the test runner that runs the tests did not want to recognize my version of the ExpectedExceptionAttribute and consequently failed my tests that expect exception. This is a thing to keep an eye out for since it appears to me it is a bug in the current build of Visual Studio 2010. There is no failing run or...

The Reason for the different test settings in Visual Studio 2010

There are different test settings for debugging tests and running code coverage and the like in Visual Studio 2010. When you want to run code coverage you cannot Yesterday I blogged Make sure you edit the same test settings that you use in Visual Studio 2010. I couldn’t figure out why there were two default sets of test settings in Visual Studio 2010; “Local” and “Trace and Test Impact”? Now I know better. After my debacle with the different test settings I promptly deleted the “Trace and Test Impact” settings and kept only the “Local” settings....

Make sure you edit the same test settings that you use in Visual Studio 2010

I will show below hot to enable Code Coverage in Visual Studio 2010, how to view the results and also how to avoid a strange pitfall that I myself fell into. Just spent the better part of an hour trying to figure out how to get the code coverage results in Visual Studio 2010. Eventually I found out that there was no problem at all. The issue was that I had edited one set of test settings and ran my tests on another set of test settings. Update: I solved this issue and the reason for there being...

MSDN Summer Radio show with me (in Swedish)

Just wanted to shout out that my MSDN Summer Radio podcast show has now aired: http://www.microsoft.com/sverige/msdn/sommarpratare/vecka25.aspx I cover lots of ground in the time I have including and Øredev, ALT.NET Oresund, Managed Extensibility Framework and Windows Azure. Please note that my Spotify playlist is a bit of a joke! The way it is presented on the site it looks as if I am serious so here’s a disclaimer: I went berserk on an old hit’s from the eighties list and mixed it up with a few new tunes. The result is completely NOT serious. But very nostalgic and...

Generate From Usage in Visual Studio 2010

The new Visual Studio 2010 IDE now support a bunch of new code generation features under the umbrella name of Generate From Usage. It is good to see that Microsoft is taking steps in the direction of including very useful features like this in the IDE for all developers to use. Note: This is a matter of carefully selecting which raisins to pick from the cake of very many features like this that third party IDE refactoring tool vendors have been supporting for a long time. I see nothing wrong with this. It is a symbiotic relationship Microsoft has...

The Øredev 2009 site is up

Go look at all the GREAT content we will have at this year’s edition of Øredev! The facts are: Malmo, Sweden, November 2-6 See you there! /Magnus Technorati Tags: conference,oredev,developerThis work is licensed under a Creative Commons license.

ALT.NET Oresund meeting in Copenhagen June 25th

It is time for another ALT.NET meeting in ALT.NET Oresund on June 25th! Great discussions and lots of new knowledge awaits! http://oresund.altdotnet.org/Blog/Meeting-at-ITU-Copenhagen-on-June-25th Cheers, M. Technorati Tags: ALT.NETThis work is licensed under a Creative Commons license.

Funny story: The day Scott Hanselman DOS:ed my blog

Today something amusing happened. It was proved that Scott Hanselman (@shanselman) has a superpower. He has powers over computers in the form that he can do DOS attacks just by posting a link to a small site (like mine) on Twitter. This is the story: Scott blogged a post about Bing! saying among other things that he’d: use Bing for the whole month of June and see how it goes I replied with my post: Using Bing! for a month – I’ll take you up on that Scott...

Using Bing! for a month – I’ll take you up on that Scott Hanselman

OK – so perhaps it opportunistic of me to try to get traffic to my blog because Scott Hanselman just blogged that he will use Bing! for a month. Fine! But I will try for my own reasons just to see what it feels like not to use “the Almighty”… Note: This post had a really funny side effect. Please also read - Funny story: The day Scott Hanselman DOS:ed my blog Scott Hanselman: Bosom Buddies: How to make Google Chrome use Microsoft Bing for Search Go give Bing! a try. I'm going to use Bing for the whole month of June and...

Progressive .NET Days event in Stockholm

It is time for a Progressive .NET Days event in Stockholm on August 27-28. It’s totally gonna ROCK - you HAVE to be there! Scott Bellware @bellware: Good Test, Better Code - Context Specification and Web Testing for Developers with UI Models Ayende Rahien @ayende: Intro to NHibernate and Advanced NHibernate Udi Dahan @udidahan: UI Composition Key to SOA Success Scott K. Allen @OdeToCode: Maintainable and Modern Javascript and Internal DSLs and Fluent APIs in C# Jimmy Nilsson @jimmynilsson: Architecture for Cloud Computing David Laribee @laribee: The XP+Lean Game and Towards a New Leader Here’s...

Bing is open

Watch out Google here comes * BING *! I wonder if everyone will treat this newcomer as well as people received Firefox when it came on the arena in challenging Internet Explorer? Or we treat competition from Microsoft different? My fist attempts to surf on Malmo (where I live) combined with different search terms give adequate results as well as a very good experience when surfing on pictures of our fair town! I selected pictures similar to a picture on the Øresund bridge and got really good results. Nice that you can select features on the pictures...