Skip to main content


Showing posts from July, 2008

TFS Local Path Modification

Today I got a build error, while I was trying to build my solution in Visual Studio. error MC1000: Unknown build error. The error detail indicated that the build cannot continue because some of my file or folder name is too long. I was working with TFS, and obviously, I understood that the local path to which I checked out my files is too long. I wanted to change the TFS source control local path. I fooled around a little, and found that I can do it from Files->Source Control->Workspaces.

You can select the Workspace in the Workspaces dialog and click Edit. In the resultant dialog box, select the new path for your branch, in place of the red line you see. TFS will move all your folders to the specified new location. Gulp, Gulp :).

Back To Basics - Extension Methods in C# - A Brief Note

About Back To Basics - It's often good to look back and fill any gaps we might be having, in certain aspects of the language or framework we use. I'll be examining and blogging about some well known features of C# and .NET, in Back To Basics series - Probably in a bit more detail.

Extension methods, introduced in Orcas, seems very interesting. First of all, here is a brief look at what they are. Extension methods can be created for existing framework classes, or for the classes that you created yourself.

For instance - one fine day, I might think that for my console application; the Framework’s String class should have a Dump method for allowing me to dump the string directly to the console.
So I’ll go ahead and create an extension method called Dump.

Using this key word in the parameter signature tells the compiler to apply our Dump extension method to the String class. Also, note that both the Dump extension method and the StringExtensions class where we define the extens…