DCSIMG
Yigael Oscar

Yigael Oscar

Math and Physics formulas

This time I am not going to talk about software.

This post is about a very good formulas documents about Math and Physics (More or less the level of Physics B.Sc. both) that I found very good and comprehensive. All the hard work was done by J.C.A. Wevers.

Physics formulas

Math formulas

Free Book from Microsoft on moving to Visual Studio 2010

There is a nice book released from Microsoft on how to Move to VS2010

I have found it quite affective

Download from here if you need it too.

Posted: Nov 03 2010, 02:48 PM by yigael_o | with no comments
תגים:

Test results trx files from a build (2005 2008 compatibility)

Hi all,

Today I saw a very strange thing. I have a project that involves several teams, some of them work with Visual Studio 2005 and others with Visual studio 2008. There is a sln file for each version (2005 and 2008). There are also Unit Tests for each solution. I have tried to check the trx files (they should hold a report on the results after the build). To my surprise when I tried to check the Unit Tests that failed there were no details. After scratching my head for a while and some experiments I found that you  can not read the details of one trx file in the other version. This is a bit odd, but you can not open a 2005 trx file in Visual Studio 2008. Go figure.

Yigael Oscar

 

One way to solve the TF84012 error message (actually, hidden TF84034 error)

Hi all,

Today a client contacted me and said he gets an error while working with Excel. I found that the error massage TF84012 does not have interesting documentation or history on the web. After talking to the client again I tried to imitate the steps he did.

Then I found the real problem. The first time he connected to the TFS 2008 everything was OK. but after adding a new column he actually got another error: TF84034. that was the real problem. Solving the problem now was easy, I just followed the simple instructions in granth’s blog about installing the KB946458.

So keep in mind, even if you get the TF84012 error, the solution could be the solution of the TF84034 error.

 

Yigael Oscar

 

Microsoft SDL 4.1

Hi all,

If you have Visual Studio Team System 2008 you should consider the installation of MICROSOFT SDL 4.1 

The SDL is a process template that Microsoft used to make sure her development of products will result in a more secure software. You should read the documentation on MSDN to decide if it will suite your company needs or not.

Much more interesting information can be found in the SDL Blog.

 

Yigael Oscar

Technorati Tags: ,
Posted: May 23 2009, 11:51 PM by yigael_o | with 1 comment(s)
תגים:,

SQL 2008 SP1 and Microsoft Visual Studio 2008 Team Foundation Server installation

Hi all,

As you know you can install Microsoft Visual Studio 2008 Team Foundation Server with SQL 2005 or SQL 2008. But, there is a little problem with installation Of TFS 2008 with SQL 2008 SP1.

The solution is not hard and a detailed solution can be found here:kb969985

Yigael Oscar

Creating Unit Tests in Visual Studio 2008

Hi all,

After consulting for a while now I was amazed to find that there are many experienced developers that do not know how to do some things that are very simple. I have decided to do my best to give easy, entry level explanations on some Simple Tasks. The first one will be Creating Unit Test.

You can read about Unit Testing here:

http://en.wikipedia.org/wiki/Unit_testing

And here:

http://www.acm.org/ubiquity/views/t_burns_1.html

And now, to the practical part:

First, right click on the method you want to test

clip_image002

After choosing "Create Unit Tests…" the next menu will pop.

clip_image004

In this menu just pick the methods that you want to Unit Test. In the next Window just pick a name for that test/tests.

clip_image006

Now you will see changes in the Solution Explorer.

A very good information source is the AuthoringTests.txt file that will be created.

All you have to do now is to run the test.

 

Yigael Oscar.

Build server giving MC3074 error on build.

Hi all,

I was busy for a while now, so, as an after affect, I haven’t updated my blog for a while now. I hope that won’t happen again!

I was gust moving a build from one server to another, less busy one and then I got the error message

“MC3074: The tag ‘Border.Effect’ does not exist…”

The error was very strange, just before that I compiled the project on the old server and every thing was fine. After scratching my head for a while I found out that the solution was very easy, there was no SP1 installed on the new  build machine.

After the installation all started working again.

 

Yigael Oscar

Connect to Team Foundation Server 2008

Hi there,

As I said I want this blog to center around some things, one of them is TFS, and especially Programming tools that work with TFS.

The most basic thing to know when you want to write programs that interact with TFS is how to connect to the TFS server.

This is simple enough. I wrote a simple program that connects to a Team Foundation Server and Prints the types of the Work Items in the first team project (just connecting doesn’t show anything , so now we have something.

   1: using System;
   2: using Microsoft.TeamFoundation.Client;
   3: using Microsoft.TeamFoundation.WorkItemTracking.Client; // Only needed when connecting to the WorkItemStore
   4:  
   5: namespace ConnectToTeamSystem
   6: {
   7:     class Program
   8:     {
   9:         static void Main(string[] args)
  10:         {
  11:             // Connect To TFS SERVER
  12:             TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer("TFS");
  13:             WorkItemStore wis = (WorkItemStore)tfs.GetService(typeof(WorkItemStore));
  14:  
  15:             Project firstProject = wis.Projects[0];
  16:             foreach (WorkItemType wit in firstProject.WorkItemTypes)  
  17:                 Console.WriteLine(wit.Name);
  18:  
  19:             Console.ReadLine();
  20:         }
  21:     }
  22: }
Have a nice day,
Yigael Oscar

Error after installing SP1 for Team System. Reporting Services Not Accessible through Visual Studio.

God bless VMware!!!,

Hi there,

Today I had a very long day. I installed TFS 2008 in a dual server configuration (both servers on a virtual machine), something that I didn’t do for a while now.

After the installation (Fresh installation, not an upgrade) I have tried to install the SP1 of TFS.

When checking again the system I found that the reports folder in each project had an “X” on it

error on reports folder

and while trying to create more team projects, I got repeatedly the TF30224 error.

But at the same time I could access the reports via Internet Explorer.

After rechecking my steps I found that according to the manual I had to install the Visual Studio SP1 prior to the Team System SP1.

I returned to the last stable condition (The System Admin took a snapshot in the VMware at each stable state).

I redid everything, in the right order this time, and everything worked grate.

One warning though, after installing the Visual Studio SP and before the installation of Team System SP I have tried to check the server. nothing worked! Of course it turned out OK but it was a surprise.

I just have two more things to say:

1. RTFM (Read The Fu***** Manual)

2. God bless VMware.

 

Yigael Oscar

How to get the workspace in a build server

Hi there,

Sometimes there is a need to get the workspace while running a build, mainly to allow you to check out a file, change something and then check it in again. (mmm… version number???)

   1: using Microsoft.TeamFoundation.VersionControl.Client;
   2: using Microsoft.TeamFoundation.Client;
   3:  
   4: private Workspace GetCurrentBuildWorkspace()
   5: {
   6:     WorkspaceInfo sourceWorkspaceInfo = Workstation.Current.GetLocalWorkspaceInfo(stringWithLocalRoot);
   7:     TeamFoundationServer tfs = TeamFoundationServerFactory.GetServer(sourceWorkspaceInfo.ServerUri.AbsoluteUri);
   8:     VersionControlServer vcs = (VersionControlServer) tfs.GetService(typeof (VersionControlServer));
   9:     Workspace workspace = vcs.GetWorkspace(sourceWorkspaceInfo);
  10:  
  11:     return workspace;
  12: }

 

Have fun,

Yigael Oscar

Visual Studio Team System Web Access 2008 SP1 Power Tool

Hi there,

If you have TFS Web Access 2008 be sure to install this Service Pack that solves a security issue.

 

Yigael Oscar

Version number NOT latest when running a build with custom build number running on TFS 2008

Hi there,

I ran into a confusing matter today at work.

We have a build that ran on TFS Build 2005 that did the following:

  • Execute a custom task in BuildNumberOverrideTarget that:
    • checked out a file
    • change the file version that it holds tor the project (++)
    • checked in the file
  • Override the BuildNumber parameter
  • Get Source
  • Compile.

After upgrading to TFS Build 2008 we noticed something very confusing, when we checked the dll versions it was always one version older than expected. (If we had a folder named 1.0.43.0 the dll inside were version 1.0.42.0 for example)

It was a little hard to understand the problem but the solution was very easy.

The problem lays with the fact that the architecture of the build in TFS was changed somewhat in 2008, instead of getting the latest version by default in the Get Source stage the new default is to get the last changeset when the build was started, this change was made to make sure that if someone else checked in something in that exact same moment it will not be compiled accidently. Of course the problem is now that the changed version number will not be in the version that will be downloaded and compiled.

The solution is simple, you just have to override the GetVersion parameter like this

   1: <GetVersion>T</GetVersion>

The meaning of T is that the Get command will get the latest version.

 

Simple, isn’t it?

Yigael Oscar

Welcome To My New Blog

Hi, my name is Yigael Oscar.

I work as an ALM (Application Life-Cycle Management) consultant in SRL Software solutions.

I intend to write in this blog about:

  • C#
  • TFS
  • WDF
  • WPF
  • .NET

I really hope that you will visit my blog, write me feedback, give me some advices or just read my posts.