tfs

Web Deploy Packages fail on build server

I am using the following MSBuild command form the command prompt: MSBuild.exe /nologo "Server.Website.csproj" /T:Package on a web application (ASP.NET 4 MVC) that relies on a project reference to a Silverlight project. When building, I get the following error: "C:\Builds\2\Development\Main Branch Nightly\Sources\Components\Server.W...

Branch from local workspace

I was developing team project and suddenly realised that i've made so many changes, that i need create branch. I've never used branching in TFS and when i saw "Branch\ "From Workspace version" i thought that's, what i need. But this option doesn't act as i supposed. How can i create new branch, from my "LOCAL COPY of Project" and incl...

Build order and dependencies not preserved on upgrade from VS 2008 to 2010 with msbuild

I'm in the process of upgrading our VS 2008 solution to run on VS 2010 I managed to successfully build in VS 2010 My next step now is to configure a build machine running TFS 2008 Whenever I start a build it does my projects in alphabetical order with no regard for dependencies. I've googled a lot and I can't seem to find a solution t...

How can I get all my checkins in Visual Studio 2010 TFS?

Hi, On Many occasions I need to review my checkins . Is there a way I can get all my checkins in TFS? I dont mean view history on a particular file,but all my checkins! If I can filter based on start and end date would be great I am new to TFS!!! Any suggestions ...

Exporting TFS 2010 Build Definitions

I built a 'proof of concept' TFS 2010 build server. Now I want to set the build server up else where and move my old build definitions to the new build server. For the life of me I cannot figure out where the file location for the build definitions are? Is there a way to export this data out of my old build server and into my new? What a...

Programmatically Add Files To TFS with dependency files

How can I programmatically add files to a TFS project that have code behind files. I can say the following to add files. That will only add single files to a project and not the file plus the code behind file. I'm trying to add a resource file and it's code behind that were dynamically generated to a TFS project. workspace.PendAdd(fi...

How to protect trunk from devs

We are using TFS for our code: trunk + branches for coding activities. There are 6 devs in my team. Problem: sometimes developers don't want to create a new branch (or use an old one) to fix/develop something. They just do it in trunk. OK, in some cases it's acceptable. But most of the time it creates a lot of troubles. How can I enfo...

TFS InvokeProcess to run under other credentials

Hi! We have customized the build process with a InvokeProcess action that runs a powershell script that deploys our sln. Problem is that this script must be run under a given user (not the tfsbuild user). How can we achive this? Alternative 1: Make the InvokeProcess run as a different user - Alternative 2: Make the powershell script...

Error 'TF215097:...Cannot create unknown type for...' custom CodeActivity

Hi all, I'm trying to create a CustomActivity to run after each successful build. I've followed the exact steps of several tutorials http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2010/03/08/lessons-learnt-building-a-custom-activity-to-run-typemock-isolator-in-vs2010-team-build.aspx http://www.ewaldhofman.nl/post/2010/04/29/Cu...

Using patch files with TFS (patch file is from subversion, git, etc)

Can patch files be read by TFS or visual studio? I'd like to either create a shelveset or apply the patch to a workspace in TFS. ...

TFS for machine applications

Hallo experts, I work at a firm as a SW Tester/Validater Our company produce autoamtic machines. Recently we are introducing team foundation server for SW development. As a SW tester my tasks include: Validation of the functionalities of the machines at the real machines. Reporting bugs and submitting reports. We don't do any UnitTes...

TFS Build Deploy

Hi I am using TFS and want do deploy two web applications after build to a test server. After the deployment I want to call a web page at one of the web applications to trigger some work like, delete all data and insert test data. How can I accomplish this? ...

TFS Build Deploy

Possible Duplicate: TFS Build Deploy Hi I am using TFS and want do deploy two web applications after build to a test server. After the deployment I want to call a web page at one of the web applications to trigger some work like, delete all data and insert test data. How can I accomplish this? ...

Scripting TFS Command Line for Get Latest Version, Check Out and Check in, programmatically

I use WinXP, VS 2008 and Team Explorer to connect to Team Foundation Server. I need to script (e.g. BAT file script) the following: Get latest version of folder in Team Project. Check out files of folder in Team Project. Check in files of folder in Team Project. My TFSProject is $/Arquitectura/Main/, mapped to the path C:\TFS\Arquit...

How do I give file path for code to be checked in at TFS?

I am writing a test code (I'm just a beginner) where I need to give a file name located in my local box. I need to check-in this code as well as the file in TFS, so that when other people take latest version, they get both. //At my local box string myFilePath= "D:\BACKUP\samplefile.extension"; For TFS check-in, I gave following path ...

TFS equivalent of "svn info"?

How can I determine the current change set version that a local work folder has using the TFS command line clients? I dont want to check what the latest version on the server but how "old" a local work folder is. "svn info" will print information about paths in your working copy, ie, revision and other info. ...

How to handle external libraries in source control ?

How do you handle external libraries in .NET projects (C#) ? Possible scenario's could be: Put the external library in source control Put the external library on a file server and create a copy-script and add this script to source control I would recommend to put external libs on a file server, create a copy-local script and map it ...

Equivalent of svn import via Team Foundation Server command line

Subversion's svn import command allows repeatedly importing an external directory tree into source control. It's also important to note the original directory tree is not modified, ie it does not become a checkout/working directory. What is the equivalent in TFS 2010 (Team Foundation Server), using the command line? ...

Running command line statements from TFS custom activity

I'd like to run a command to execute a subversion command from the TFS custom activity. Should I create a msbuild script to exec the svn command and call msbuild from the activity? Thanks. Anyone? ...

Code Coverage possible for TFS Build 2008 building Visual Studio 2010 Project?

We have moved to Visual Studio 2010 but our TFS folks are not ready yet. After some work, we can get the build to work, but we don't get code coverage. We are running using the MSTest test runner. Does anyone know any tricks to get TFS to report code coverage using Visual Studio 2010 on a build server that has a TFS 2008 Build agent? ...