Monthly Archives: October 2008

Loading PowerShell Profiles from Other Script Files

PowerShell profiles are used for loading common scripts, add-in’s, functions, etc into the PowerShell session at startup. There are four different locations where profiles are loaded from: You can have four different profiles in Windows PowerShell. The profiles are listed in load order. The most specific profiles have precedence over less specific profiles where they…

TFS Dependency Replicator Gotcha

Recently I was working with Dependency Replicator and I ran into an issue.     Background The file that is the “dependency” does not exist in the destination yet. Therefore the replicator fails. If it does not find the destination file in the dependent project location it will fail. In English: In $/TeamProject/Main/SharedBinaries/ there was no…

How Did C# Get Its Name?

It’s an interesting name to say the least. Why the “sharp” symbol? Sometimes newcomers get it incorrect at first (usually people BRAND NEW to programming) and call it “C POUND”. It Almost sounds like a hip-hop thing as the “pound” word has different context in that arena. The knocking of fists as a form of…

Integration Testing

Integration Testing Purpose: Testing how the layers/tiers/objects integrate with each other. When we’re unit testing, we’re testing a single unit of code. We’re testing to see if an addition operation results in what we expect it to.  Does five plus five equal ten? Does this complex calculation f(x) result in y when x = 5?…

Visual Studio Project MSBuild Import Error Fix

If you get this error: Unable to read the project File <path.to.project>.csproj. C:\<path>\<to>\<projecct>\Project.csproj 77, 11): The imported project “C:\Microsoft.CSharp.targets’ was not Found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk. As shown in this screen shot …   Take a look at your project file. Open…