How to get 'Code Metrics' out of VS2003? - visual-studio-2003

I want to use VS2010 power tool 'Code Metrics' with VS2003 Projects and Solutions? do you know how I can manage to do that?
http://www.kodyaz.com/articles/visual-studio-code-metrics-for-vs2010.aspx

ok, maybe using code metrics from the command line:
http://blogs.msdn.com/b/camerons/archive/2011/01/28/code-metrics-from-the-command-line.aspx
and referencing the assemblys.

Related

TFS source control without Visual Studio?

Is it possible to use TFS source control without Visual Studio? I have to put some files in some source control, those files are stored in a folder in some server, that is something developed in Oracle forms. I just need to add those files in some source control and I'd like to use TFS for that. Any tips or tools could we use for this?
TFS is likely to be overkill for a few files in a single folder, but if the TFS infrastructure is already in place then it will work.
You will need Team Explorer (or, on non-Windows) Team Explorer Everywhere installed to give you the client tools. But you can perform all source code operations with the tf.exe command line (or equivalent from Team Explorer Everywhere).
Team Foundation Server Power Tools has Windows Shell Extensions that provides integration
with Windows Explorer and the common file dialogs. With this integration, you can perform many source control operations without having to run Visual Studio or a Team Foundation command-line tool.
see this answer but you will need to make sure you have tfs server running as well to connect to. Would it not be simpler to use git/mercurial/svn...{any other free source control system}?
I am one of the lovers of TFS, but I think in your case if you don't need to use Team Explorer or Team Explorer Everywhere (which will need command line used) for none windows I suggest to use SVN sub version (VisualSVN Server) it's open source and it has integrated OS shell (TortoiseSVN ) right click menu which will be easy than using command line
Vlad: That is true, but this important: I have used the "Shell Extensions" for a while only to realize that it does create problems. First of all, the "Shell Extensions" does not report errors during a check-in; it only unexpectedly stops, and the window closes.
Also, the reason I am looking for an external "Source Control Explorer" is that if you delete any file from Window Explorer that was under Source Control by TFS, the Check-In procedure will fail saying that there is a file missing. The correct way to safely delete a file is to do it through "Source Control Explorer"; the check-in then works. Usually not a problem, unless, like me, you have a Java project and have no integration between NetBeans & TFS.

TeamCity Build - show which TFS Work Items have been fixed

we use TFS as source control system.
When we check in, we provide a comment and relate to a work item.
We use TeamCity for automated builds.
Teamcity nicely shows us the ceck-in comments, but the test manager would like to see the Work Items related to the check-ins in the TeamCity build information.
Is this possible? How?
Kind regards,
Ugly Papa Ramone
There is a plugin avaialable from jet brains to do this.
http://teamcity.jetbrains.com/project.html;jsessionid=6B41F83740F0A6F1F6C3056661013EA8?projectId=project50&tab=projectOverview
James

Clean checkout from TFS 2008

I want to pass a project to a colleague without SCC bindings to avoid accidental changes in my repository.
Is it possible to do a clean checkout from a TFS 2008 repo? I'm going crazy finding such an option in VS2008.
Thanks in advance.
I don't think this is possible. As far as I know TFS does not contain an export like functionality as SVN does.
You can do a hard "unbind" However as:
File -> Source Control -> Change Source Control and then unbind and/or disconnect all projects and the solution.
But watch out this will remove the bindings from the solution and project files.
Rody has a good answer, but here is another hack way to do it.
If you delete all the .vspscc files and then reload the solution it should prompt you saying that it cannot find all the source control information, and one of the options from that is to work disconnected.

TFS: Building solutions with different flavors (Debug/Release)

I'm using TFS 2008 and I would like to build some solutions in debug mode and some in release.
In my script, the section responsible to the 'build flavor' is global to the entire script and not for specific solutions...
There must be some way of accomplishing that... Can someone help me out please?
Thanks!
There's no easy way (that I know of). The simplest workaround is to build for each configuration across all of the solutions in the build script.
Not ideal, but it should work.

How to associate work item with check in when using tf.exe

We have a rule in TFS that requires all checkins to be associated with a work item. We have an automated daily build process that uses tf.exe to check in the files. However, I did not find any way to associate files with a work item.
I heard of tfpt, and have it installed, however, I did not have any success using it to associate files with a changeset either.
Is there another way to do this?
Thanks!
I'm pretty sure tf.exe / tfpt.exe cannot do this except through their UI. If you need to use the -noprompt parameter for automation then you're likely out of luck.
Luckily, it's not hard to use the API directly. MSDN link. Basically just build up an array of WorkItemCheckinInfo[] and pass it along with your request.
Team Foundation Power Tools has a command for dealing with work items.
tfpt.exe help workitem

Resources