Sending parameters to msbuild in TFS

The build process in Team Foundation Server is the one part where you still miss some stuff. Although it is much better in TFS 2008 than in TFS 2005 it is still quite cumbersome to handle.

The way you start off with a wizard and then almost always need to go into the .proj-file to do updates is also confusing. Most people don’t want to be fiddling around with the nitty-gritty details of a MSBuild-script - it is not pretty.

These, and other reasons, has led many of the projects that I am involved in to create a lot of build scripts - and some of them is not need. Like, for example, you shouldn’t be needing a separate build script to deploy to a certain environment, or the deploy part should not have to get and rebuild the sources.

The solution to this is of course to send and...

Read More

Required file 'alink.dll with IAlink3' could not be found - and the solution to it

OK - a bit irritating but the first time I tried to compile … well anything (a console-application in this case) on my newly installed Visual Studio 2008 on Vista - I got this error:

Required file ‘alink.dll with IAlink3’ could not be found

Fortunately a lot of people seems to be having the same problem. Here is one guy describing the solution. But just to be sure I’ve copied the solution into here:

========= The solution was to install two Windows Update items found on the Visual Studio 2008 DVD in the “<dvddrive>:\WCU\dotNetFramework\dotNetMSP\x64” folder (for 32-bit version look in the “<dvddrive>:\WCU\dotNetFramework\dotNetMSP\x86” folder):

  1. NetFX2.0-KB110806-v6000-x64.msu. Run it, wait forever, reboot when it’s done.
  2. NetFX3.0-KB929300-v6000-x64.msu. Run it, wait forever, reboot when it’s done

========

Read More

Naming service reference to get namespace-like behavior

In my current project we are accessing a legacy system using Microsoft Transaction Integrator. Luckily for us we don’t have to write any of that stuff, that is done by another team who exposes the objects and methods in the legacy system as web services.

However - they have chosen to encapsulate each object.method as one web service. Since we will have about 50 methods to call it we be … 50 web service references for us to keep track on.

That is not a problem if it wasn’t for the namespacing. There are a lot of wsGetBusinessCodes and wsUpdateInsurance namespaces running around in our code.

Yesterday we found a “solution” to how to organize the web service references on our, the client, side - and still let the server side publish the web service how they like. The solution is quite simple;

as it turns out you can...

Read More

New York Staff Band and Enfield together

Wow - here is a whole concert with the two great bands, in top form as it sounds. And with the extra treat of hearing Philip Smith playing Victorious (is it a bit sloppy for the worlds greatest trumpeter…?). There are also some other great items from other occations

Click on “Band profile” for the complete concert…

Here is the same thing in full screen-mode

Read More

Transactions in stored procedures with transaction scope

Yesterday I got a question from a collegue who had run into trouble using the TransactionScope-construct in .NET.

The case was as follows; the are programming against a database whose stored procedures they cannot change. Some of these stored procedures are using calling each other and doing so under stored procedures. When the .NET-code is calling those stored procedures and doing so under TransactionScope they run into problems. The TransactionScope is not Complete-ing and the reader they are using in the TransactionScope simply returns empty (Nothing).

OK -first and foremost; don’t mix! It’s no good idea to have two guys deciding on when you are done. So use either the excellent Transaction support given in .NET 2.0 or use transactions in stored procedures. However…

To my colleague’s defense it must be said that they cannot change the stored procedures they are using, so they are stuck. This is how you...

Read More

Error message "Could not load file or assembly 'Microsoft.VisualStudio.Enterprise.ASPNetHelper" when deploying

When we deployed our latest WCF-service we ran into this error message: Could not load file or assembly ‘Microsoft.VisualStudio.Enterprise.ASPNetHelper’.

Apparently this has to do with Visual Studio inserting stuff into the web.config (or app.config) when you ran a test under code coverage. From my goggling I find that other actions in Visual Studio might insert this also.

Here is a short posting describing the problem.

Be sure to “clean” the web.config-file that is promoted to your testing and production environments.

Read More

Design patterns

I’ve been doing some reading up on design patterns, mostly actually since I was curious on the book - Head First Design Patterns.

It is great - I can honestly say that it is the best IT-related book I’ve ever read. It is the first time (embarrassing enough) I understand some of these patterns. It covers a lot of different aspects and do just enough of deep exploration. And (not least) it is FUN - I actually laugh when I read it. When did you do that reading for example this book (which also is good, but not fun…).

However - a colleague tipped me on a great resource for pattern explanations on line: http://www.dofactory.com/Patterns/Patterns.aspx

Thanks Calle for the tip, and for borrowing the book

Read More

Running Vista

OK - for the first time I am running Vista. I am really impressed so far. Looks nice and work great - that’s how we want to have it, isn’t it? That all Mac users probably goes bananas over all the Mac-OS-rip-offs is nothing to care to much about.

Also this is my first posting using Windows Live Writer, which is Microsoft’s blog-writer program. It also seems to work great.

Let’s post and see

[UPDATE… five seconds later]

Oh yeah - it works ;)

Read More