DCSIMG

 Subscribe in a reader

January 2008 - Posts - Guy kolbis

January 2008 - Posts

In Team System 2005 there is a limit for the location of the TeamBuildTypes folder. The TeamBuildTypes contains all the build type definitions and once you create your first build, the folder is created and added to the source control under the team project route.

You cannot change the location by moving it to a child folder because the build requires that the TeamBuildTypes directory to be a folder of the team project for it to show up in the build type tree view.

For me this is a problematic solution, because as for the code itself, I would like to manage versions also for the build project.

The good news is that in Team System 2008, Microsoft solved it.

עם כל הכבוד, ויש הרבה כבוד!!! כשראיתי את זה צחקתי כמו מטורף...

2

מה אתם אומרים?

During a nightly build operation I was planning and constructing for a customer, I needed to automatically change the AsseblyVersion. When finished, the customer asked me whether they also need to change the AssemblyFileVersion.

So, what is the different between the two?

Well the difference lies in their name itself. One is the version of the assembly the other is version of the file, wait, am I making it complex? Ok let me explain.

In short, the AsseblyVersion is used by the GAC and  AssemblyFileVersion shows up in Windows Explorer file properties. 

My way of looking at it is as follows:

The AssemblyVersion is what other assemblies that reference your namespace will look at. If that number changes, then the referencing assembly blows up.

But you as the developer still need to know what version of the assembly is deployed, and for that you use the AssemblyFileVersion attribute. Increment it every time a new version of the assembly is deployed.

kick it on DotNetKicks.com

David Hayden posted that MSPress has apparently put together a Free E-Book that includes excerpts from three recent book releases:

Free E-Book on LINQ AJAX Silverlight

You can read about it here.

You can download them here.

 

In some cases you would like to monitor how your remote machines perform. Lets say that you developed a web application that was deployed on two machines. Machine A hosts the web application in the IIS machine B will host the SQL Services.

Either one of the machine holds vital information regarding the performances for you application, thus it is important to monitor both.

So, how do you monitor remote computers using the performance monitor?

Basically you first need to allow remote access to the machine and then monitor it.

All you need to do is follow these steps to allow remote access:

  1. Go to the Administrative Tools folder.
  2. Select the Local Security Policy.
  3. Double click the Local Policies folder and expend it.
  4. Double click the User Rights Assignment folder.
  5. Double click the "Access this computer from the network".
  6. Add the required users.

Now to monitor the remote machine:

  1. Open the performance monitor.
  2. Click Ctrl+I.
  3. Select the remote computer (IP or Name).
  4. Select the desired categories and counters.

Enjoy.

kolbis כתב בתאריך Monday, January 21, 2008 2:32 PM
תגים:

Here is the lab for the WCF course I gave.

In the following lab there are demonstration on how to host two services with HTTP binding and TCP binding.

One service should be used by internal clients over TCP while the other should be use by external clients over HTTP.

You can download the completed lab here.

kolbis כתב בתאריך Sunday, January 20, 2008 4:09 PM
תגים:

Here is the demos from the WCF course I gave.

This demo focuses on Polymorphism, Complex Object Serializations, and versioning with IExtensibleDataObject.

You can download the demos from here.

kolbis כתב בתאריך Sunday, January 20, 2008 3:19 PM
תגים:

Hi, here are the demos for SOA lecture I gave.

In the following demo I introduce web services to support SOA Tenets.

You can download the demos from here.

Enjoy!

kolbis כתב בתאריך Saturday, January 19, 2008 11:42 AM
תגים:

Hi, as promised here are the labs for the SOA and WCF course I gave.

The following demo I show how to create a client server architecture with WCF, how to work with endpoints, contracts and built-in bindings.

You can download the labs from here.

Enjoy!

kolbis כתב בתאריך Saturday, January 19, 2008 11:32 AM
תגים:

If you are looking to be recognized by the community, you should first find a field and then become an expert in that field. From my experience, the field usually picks you rather you pick it. Let me explain it for a minute. We all have a place we work at, and at that place there are demands and fields that we must be familiar with. If you develop a Windows application and you work a lot with WPF, then it might be that this is going to be your field of expertise and so forth.

It is possible to be an expert in more than one field. Take me for example, I have been programming for almost 10 years now. I have been the road of both web and win applications. I have worked with WCF, WPF, WF, AJAX, .NET 1.X - 3.5 and etc. Still I am not considering myself as an expert in each one of those fields, but I have a very good knowledge in all of them.A week ago I have talked to a customer who called me for help regarding Team System. I have asked him why he called me for help, and he said to me that everyone knows that Guy Kolbis equals Team System.I did not know whether to be happy or sad. Yes, I do know Team System, but I also know couple of other things as well. In my case the Team System field found me and I have became a well known expert in that field. This is great, but I also work with other technologies on a daily bases as mentioned before.In turns out that "Labeling" is something that happens not just in source control, but also in the community.

If I will ask you: do you know Leon Langleyben?

You would probably say: Yes, isn't that guy who works with ASP.NET?If I will ask you about Eyal Vardi you would probably say Eyal == WCF and Guy Burstein == WF and so forth.I can assure you that each and every one of them can talk about any of the technologies I have mentioned before, but nobody consider them as experts in those fields.

Please share your thoughts...

 

A new version for Sidekicks (2.0) has been released.

Team Foundation Sidekicks is a suite of tools for Microsoft Team Foundation Server Administrators and advanced users providing Graphic User Interface for administrative and advanced version control tasks in multi-user TFS environments.
 
Version 2.0 of Team Foundation Sidekicks includes Code Review Sidekick, Shelveset Sidekick, Labels Sidekick, History Sidekick, Workspace Sidekick and Status Sidekick in uniform GUI stand-alone application, and Visual Studio Integraton Package providing VS integration for Code Review Sidekick as well as additional features such as Search Items dialog, dynamic History and Build Type editing support.
 
Single installation package contains versions of application comaptible both with Team Foundation Server 2005 and Team Foundation Server 2008.

You can download it here.

There are several build it alerts related to Team Projects.Here are the build-In alerts that you can subscribe to:

 
    1. My Work Items Changed By Others.
    2. Anything Is Checked In.
    3. A Build Quality Changes.
    4. A Build Completes.

You can register to either one of the events from TeamàProject Alerts.

 

One thing to make sure is that the SMTP server is configured properly.

In order to do so, here is a peace of code you can use to verify it:

 

using System;
using System.Net;
using System.Net.Mail;

 

namespace MailSender
{

class Sender
{
    public static void Main(string[] args)
    {
        try
        {
            string Host = "myEmailServer";
            string FromAddress = "serviceAccount@somewhere.com";
            string ToAddress = "me@somewhere.com";
           
            SmtpClient client = new SmtpClient(Host);
            MailMessage mm = new MailMessage(FromAddress, ToAddress);
            mm.Body="TestBody";
            mm.Subject="TestSubject";
           
            client.UseDefaultCredentials = true;           
            mm.BodyEncoding = System.Text.Encoding.UTF8;
           
            client.Send(mm);
        }
        catch (Exception e)
        {
            Console.WriteLine(e.ToString());
        }
        Console.ReadLine();
    }
   
}

}

 

If the code passes then the SMTP server is configure correctly, if not follow these steps:1. Browse to the following file in the TFS server machine: C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services\Services\web.config2. Verify that the emailNotificationFromAddress is valid.3. Verify that the smtpServer is valid.

 

If all steps are OK and you still experience a problem, consult your System Administrator.

 

My motivation to initiate the team build from the command line was the need to perform nightly build. To do so I needed to create an executable or a batch file that I can schedule using Windows scheduler.

So the first step for me was to create a batch file:

SET TFSDIR="D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\"
SET TFSSVR="TFS Server"
SET TEAMPROJECT="TFS Project"
SET BUILDTYPE="TFS Team Build Type"


%TFSDIR%TFSBuild.exe start %TFSSVR% %TEAMPROJECT% %BUILDTYPE%

The next step after competing the batch file was to schedule it using windows scheduler.

To complete this, just select the scheduling information and you are good to go.

Enjoy!