tfs2010

Using the TFS 2010 API to subscribe to Workspace Events

微笑、不失礼 提交于 2019-12-08 01:55:08
问题 I'm trying to write some code that monitors the TFS workspace(s) on my local workstation but at the moment I'm having problems getting the events to fire. For example if I map a new folder in my workspace I want to subscribe to the versionControl.UpdatedWorkspace event, and if I do a “get” I want to map to the versionControl.Getting event. The code below is a console application that I think should work, but when I do a get nothing happens. Does anyone know how to successfully subscribe to

TFS 2010: run powershell script stored in source control

雨燕双飞 提交于 2019-12-07 21:43:31
We've started using TFS2010 over at the company I work at. We create e-commerce web applications (shopping sites). I'm creating a custom template to deploy web projects after a build using a build template. I've looked at the web deploy tool, but MSDN seems to indicate that it can only do initial deployments, and I need to be able to do incremental deployments with the same script. I'm thinking of using the invokeActivity activity in the template to use powershell to do the job by specifying an FTP script which automatically copies the output of a build to a designated FTP site and then runs

Programatically checkout a file in TFS 2010

烂漫一生 提交于 2019-12-07 20:42:26
I have a program which create a new branch when I give it the required arguments. After creating the new branch, I would like to check-out a project file, add some post-build events, and then check it in again. How can I do that? You need to use the workspace method, PendEdit(string Path) http://msdn.microsoft.com/en-us/library/bb139369.aspx So you could do this, GetStatus status = workspace.Get(new GetRequest("FilePath", RecursionType.None, VersionSpec.Latest),GetOptions.Overwrite); workspace.PendEdit("FilePath"); HTH Cheers, Tarun 来源: https://stackoverflow.com/questions/6764883

Detecting TFS version/install folder from MSBuild

巧了我就是萌 提交于 2019-12-07 19:36:04
问题 I wish to call the GetBuildProperties task from my MSBuild script run on TFS. However, this script can be run on either TFS 2010 or TFS 2013. Is there a way to detect the version of TFS that has launched an MSBuild Script? At the moment, I am getting around the problem like so: <PropertyGroup> <CurrentProgramFiles>$(ProgramW6432)</CurrentProgramFiles> <CurrentProgramFiles Condition="$(CurrentProgramFiles) == ''">$(ProgramFiles)</CurrentProgramFiles> </PropertyGroup> <PropertyGroup Condition="

When to create PBI's from a feature request and where to draw the line into splitting them up? [closed]

独自空忆成欢 提交于 2019-12-07 17:29:47
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 2 years ago . We are in the process of starting to use Scrum (in combination with TFS 2010 and the MS Scrum template) in our company. Since none of us have any experience there are still some questions to be answered. Since our Product Manager and Scrum Master are non-technical people it

TFS 2010 Build Publish via file system

倾然丶 夕夏残阳落幕 提交于 2019-12-07 17:13:45
问题 I've got a fairly large MVC2 project in TFS which gets built automatically on checkin (Continuous Integration) At present, the fully built version is dumped on a network share on our dev IIS server. \\Server\wwwrootLatest TFS of course creates lots of sub-folders since it's just doing a build, it isn't even aware that it's drop directory is a wwwroot. This means that to actually USE the build, we need to go and manually create an IIS App which points at the appropriate directory - which

Language folders for Silverlight projects when building with Team Build

萝らか妹 提交于 2019-12-07 16:49:03
问题 I have a Silverlight 4 project in my solution. When I automate the compilation of the Silverlight project in Team Build, I get in my output folder a long list of folders that have the Silverlight translations in it. These folders are not present in a local build (compile from Visual Studio), and I don't want them since I am targeting only one language. I have not found a setting to specify to not get these folders, and even better specify the languages I want to support. Does anybody know how

Are TFS 2010 (a.k.a. Microsoft ALM 2010) web services exposed\documented

隐身守侯 提交于 2019-12-07 16:03:42
问题 I'm trying to find up to date info on commuicating with TFS 2010 (now also refered to Microsoft ALM 2010, I believe). This previous post 192579 from a Microsoft TFS team member states : The web services are not documented by Microsoft as it is not an officially supported route to talk to TFS. The officially supported route is to use their .NET API. But this was anwser was back from 2008, so I was wondering if this is still the case with 2010. There is a post 2010 post that talks about using

Moving source, labels, and history in TFS 2010 from root folder into a branch

霸气de小男生 提交于 2019-12-07 15:03:36
问题 I've got a situation that I'm not sure if I can work around. I've recently started on a new team that had never used any type of Version Control system, and our organization uses TFS as a standard (which I'd never used before). After a lot of pleadind, I got the admins to creat a TFS project for my existing code on our server, and since none of my project's code had ever been checked in (after many years of existence), I wanted it in version control asap, so I checked my project into the root

TFS Merge: Cannot discard a changeset

血红的双手。 提交于 2019-12-07 14:51:35
问题 We have a changeset where the developer has checked in changes to both source and target branch, many changes including renames in both branches. The merge of the the changeset from source to target branch goes fine, but the changeset remains in the list of changesets to be merged. When I now try to merge the changeset again, it says "There are noe changes to merge.". And the changeset remains in the queue. We have tried to use the command line tool to discard the changeset like this: C:\src