tfs2013

Howto query TFS 2013 API for git repositories in a TeamProjectCollection?

我是研究僧i 提交于 2019-12-09 19:04:26
问题 Does anybody know how to get all git repositories within an TFS 2013 TeamProjectCollection? Documentation is very poor for git related stuff. 回答1: Have you tried looking at Microsoft.TeamFoundation.Git.Client? Some pseudo code GitHttpClient client = new GitHttpClient("collectionurl", creds) var gitRepos = client.GetRepositoriesAsync().Result 回答2: The Web API's are apparently the correct (and better documented) approach. e.g. GET http://mytfsserver:8080/tfs/defaultcollection/_apis/git

how to undo pending changes of files that are unchanged?

五迷三道 提交于 2019-12-09 02:51:17
问题 One thing that drives me crazy with TFS is the fact that if you have a file checked out, but you made no changes to it, it still shows as a change, distracting you from real changes that you made. This is especially annoying when you use tools such as T4 to generate code, because most of the time the tool will generate the same code, but will leave the file checked out. For some reason that I can't understand, Visual Studio insists in showing those as changes, and will even claim that there

How to init VersionControlServer class?

拟墨画扇 提交于 2019-12-09 02:18:29
I want to download file from TFS 2013. I found the VersionControlServer class: msdn But how to initialize it? VersionControlServer vs; vs.DownloadFile(repositoryPath,localPath); // vs not initialized! Thank you! String repositoryPath = "$/MyColl1/Folder1/Folder2/TargetFile.txt"; String localPathStored = Environment.CurrentDirectory + "/" + "TargetFile.txt"; String uriSite = "http://tfs-server:8080/tfs/../../vN.0/....asmx"; TfsTeamProjectCollection teamProjectCollection =TfsTeamProjectCollectionFactory.GetTeamProjectCollection(new Uri(uriSite)); VersionControlServer versionControlServer =

How do I detect if the test run was successful in a Team Build 2013 Post-Test script?

会有一股神秘感。 提交于 2019-12-08 20:59:00
问题 I have a build configuration in TFS 2013 that produces versioned build artifacts. This build uses the out of the box process template workflow. I want to destroy the build artifacts in the event that unit tests fail leaving only the log files. I have a Post-Test powershell script. How do I detect the test failure in this script? Here is the relevant cleanup method in my post-test script: function Clean-Files($dir){ if (Test-Path -path $dir) { rmdir $dir\* -recurse -force -exclude logs,"

How to init VersionControlServer class?

☆樱花仙子☆ 提交于 2019-12-08 04:00:11
问题 I want to download file from TFS 2013. I found the VersionControlServer class: msdn But how to initialize it? VersionControlServer vs; vs.DownloadFile(repositoryPath,localPath); // vs not initialized! Thank you! 回答1: String repositoryPath = "$/MyColl1/Folder1/Folder2/TargetFile.txt"; String localPathStored = Environment.CurrentDirectory + "/" + "TargetFile.txt"; String uriSite = "http://tfs-server:8080/tfs/../../vN.0/....asmx"; TfsTeamProjectCollection teamProjectCollection

VisualStudioOnline NuGet Restore now built in?

☆樱花仙子☆ 提交于 2019-12-08 02:53:32
问题 Is the Host Controller on Visual Studio Online now automatically restoring NuGet package before calling MSBuild? Previously I had to manually execute the following: nuget.exe restore MySolution.sln Now, when creating a new build in a new project, I noticed that I didn't need to do this. When looking at the build logs, I see this: 回答1: This was a change in TFS 2013 Update 2 and is reflected in VS, TFS, and VSO... 来源: https://stackoverflow.com/questions/30037083/visualstudioonline-nuget-restore

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="

How can resolve Untrusted certificates Error ?( TFS2013 Build and deploy to IIS )

ぃ、小莉子 提交于 2019-12-07 18:51:17
问题 I crate a build definition on tfs2013.when I queue my builddefinition I get an error about Untrusted certificates. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets (4270): Web deployment task failed. (Connected to the remote computer ("developertest") using the specified process ("Web Management Service"), but could not verify the server’s certificate. If you trust the server, connect again and allow untrusted certificates. Learn more at: http:/

Access to Registry denied when connecting to Team Project

删除回忆录丶 提交于 2019-12-07 17:36:55
问题 in VS 2017 when I connect to a Team Project in TFS 2013, I get an error: Access to the Registry Key 'HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\15.0\TeamFoundation\Instances\xxx' is denied. The problem exists only in one of our two Team Project Collections after I reinstalled my workstation (Windows 7). My working account has no Admin privileges. 回答1: First you could use another user account to connect the same team project to narrow down the issue. If you got the same result. This

Visual Studio 2015/ TFS 2013 not ignoring bower_components in ASP.NET 5 projects

余生长醉 提交于 2019-12-07 10:17:06
问题 Visual Studio 2015 is not ignoring bower_components folder although it is ignoring node_modules so I don't know what is wrong. This is the content of my project.json { "webroot": "wwwroot", "version": "1.0.0-*", "dependencies": { "Microsoft.AspNet.Mvc": "6.0.0-beta7", "Microsoft.AspNet.Server.IIS": "1.0.0-beta7", "Microsoft.AspNet.Server.WebListener": "1.0.0-beta7", "Microsoft.AspNet.StaticFiles": "1.0.0-beta7" }, "commands": { "web": "Microsoft.AspNet.Hosting --config hosting.ini" },