tfsbuild

How can one determine if a csproj is being run on a TFS build agent?

孤者浪人 提交于 2019-12-03 12:44:18
We use TFS 2010. There are a couple of projects with deployment steps which must know whether they are running on a dev machine or on the TFS build agent. Right now they check whether the build is from within Visual Studio assuming that only devs compile from VS. Alas, it means I cannot compile from the command line! So, my question is how an msbuild script can determine if it is being run by the TFS build agent? You have a few options: '$(BuildingInsideVisualStudio)' != '' '$(TeamBuildConstants)' != '' (supported in team Build 2008) '$(IsDesktopBuild)' == 'false' You can check either one to

Tfs 2010 Build: Continuous Integration and Gated Check-In together?

折月煮酒 提交于 2019-12-03 11:55:26
问题 I already have a CI build running on my Tfs2010 instance, but I'd like to get a Gated checkin build running as well. There are subtle differences between the ways I would like these two builds would run, however. Specifically, I'd like the Gated checkin to not produce bug workitems on failure, not associate changesets and workitems on build, not move builds to the drop, and not maintain previous builds. Since builds initiated by Gated checkins are uncommitted changes, these steps seem

Auto Deploy using Continuous Integration in TFS 2012

痞子三分冷 提交于 2019-12-03 11:40:57
问题 I have setup continuous integration for a WCF project and want to use the MSBuild Arguments to automatically deploy the application to a remote server but it is not deploying. When running a new Build all the Tests pass and all the projects build but the website is not being deployed. Also, I am getting no errors back from the build to say anything has gone wrong. I have opened up port 8172 on the remote server to ensure connections can be made to IIS and have even disabled the firewall. In

TFS Can't Restore NuGet Package

穿精又带淫゛_ 提交于 2019-12-03 09:45:47
问题 I've got TFS doing some continuous integration builds. Today, it broke for one solution. It seems it can't find AutoMapper. All the other packages can be found just fine. A couple relevant points: None of the packages are in source control, we're letting TFS restore them. We have an internal NuGet feed, but it doesn't seem to be a problem in other solutions, and in this solution we are still getting Entity Framework to restore - just not AutoMapper. I tried removing and re-adding the NuGet

Set Wix property to TFS build location

白昼怎懂夜的黑 提交于 2019-12-03 08:13:41
I have been trying to find an answer to my question and could not find it; hence I will put the solution here. I hope it is helpful to others. Problem: I want my Wix project to build in TFS 2010 build process. As part of this, I want the source files location for my Wix to point to the build location of the TFS. For example, I want: <File Id="ABC" KeyPath="yes" source="C:\Builds\1\MyBuild\assembly.dll" /> to be: <File Id="ABC" KeyPath="yes" source="$(var.TFSLOCATION)\assembly.dll" /> The 'TFSLOCATION' is a wix property that needs to be populated with the location of TFS build. This needs to

MSBuild TFS Build Number

我怕爱的太早我们不能终老 提交于 2019-12-03 06:33:33
I have been using SVN for a little while now. recently on a project I am using TFS. With the builds I like to append/update the build version number on the project output. I do this on the masterpage so that it is clearly visible on the application. Since the application could be running on multiple machines, it is handy information on which verison are running. I achive this in SVN world as: <!-- Import of the MSBuildCommunityTask targets --> <Import Project="$(MSBuildExtensionsPath)\MSBuildCommunityTasks\MSBuild.Community.Tasks.Targets" /> <!-- to AssemblyInfo to include svn revision number

How to integrate NUnit tests into a TFS 2010 build

白昼怎懂夜的黑 提交于 2019-12-03 02:30:57
What is the best way to integrate nunit tests into TFS 2010? Is it via generic tests or is there a better approach to running them? Ideally I'd like to have the granularity of one generic test per test assembly and have a way to surface the results in the TFS build report. Rhapsody You can run nunit tests from command line and therefore you can automate these tests via your (Workflow) build template. Since there aren't a lot of custom build activities available for TFS 2010 yet, you could write your own to make sure that it integrates better with the TFS Build Report. Here you can find some

Tfs 2010 Build: Continuous Integration and Gated Check-In together?

对着背影说爱祢 提交于 2019-12-03 02:12:27
I already have a CI build running on my Tfs2010 instance, but I'd like to get a Gated checkin build running as well. There are subtle differences between the ways I would like these two builds would run, however. Specifically, I'd like the Gated checkin to not produce bug workitems on failure, not associate changesets and workitems on build, not move builds to the drop, and not maintain previous builds. Since builds initiated by Gated checkins are uncommitted changes, these steps seem unnecessary to me, but I would definitely like the CI build to perform these functions. Unfortunately, there's

Auto Deploy using Continuous Integration in TFS 2012

南楼画角 提交于 2019-12-03 02:11:36
I have setup continuous integration for a WCF project and want to use the MSBuild Arguments to automatically deploy the application to a remote server but it is not deploying. When running a new Build all the Tests pass and all the projects build but the website is not being deployed. Also, I am getting no errors back from the build to say anything has gone wrong. I have opened up port 8172 on the remote server to ensure connections can be made to IIS and have even disabled the firewall. In the Build Configuration I have specified the following arguments; /p:DeployOnBuild=True /p:DeployTarget

Free Online Team Foundation Server [closed]

家住魔仙堡 提交于 2019-12-03 01:28:35
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Can anybody recommend a good free online Team Foundation Server repository? I found CodePlex but it's only for open source projects. 回答1: Upto five team members it is free. Try it :) http://tfs.visualstudio.com/ 回答2: Free is TFS hosted on Windows Azure: http://tfspreview.com/ If you need more info about TFSPreview