tfs

How can I always block checkin of a specific file in TFS

故事扮演 提交于 2019-12-27 16:50:30
问题 There is one file that I always made changes to, but that I never want to be checked in. I would like TFS to block me from ever checking it in or committing the changes. How can I configure TFS to do this? Details: There is another developer on the project that has checked in some bad code that I prefer to comment out on my local machine. Since they are a client, I prefer to keep this a technical exercise rather than make it a political one. 回答1: One of TFS undervalued features is cloaking.

How can I always block checkin of a specific file in TFS

佐手、 提交于 2019-12-27 16:50:27
问题 There is one file that I always made changes to, but that I never want to be checked in. I would like TFS to block me from ever checking it in or committing the changes. How can I configure TFS to do this? Details: There is another developer on the project that has checked in some bad code that I prefer to comment out on my local machine. Since they are a client, I prefer to keep this a technical exercise rather than make it a political one. 回答1: One of TFS undervalued features is cloaking.

淘口令解析

北战南征 提交于 2019-12-27 12:30:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 淘口令解析 通过程序解析淘口令,无需联盟开发者权限,只需几行代码就可实现自动识别淘口令: def query_password(sign_server, share_password): data = "{\"passwordContent\":\"" + share_password + "\"}" v = "1.0" api = "mtop.taobao.sharepassword.querypassword" call_gw_api(sign_server, api, v, data) if __name__ == '__main__': sign_server = "http://192.168.3.5:6778/xsign" share_password = "hv****MNT5" query_password(sign_server, share_password) 程序返回结果: { "api": "mtop.taobao.sharepassword.querypassword", "data": { "createAppkey": "21380790", "validDate": "15796****632", "isTaoFriend": "false", "weakShow": "0",

TFS高可用性分析

允我心安 提交于 2019-12-26 15:25:43
1. VSTS的失效类型 (1) TFS数据库内容失效:数据被错误删除 (2) TFS数据库服务失效:数据服务不能启用 (3) TFS应用层服务失效:应用层服务不能启用 (4) TFS客户端失效(本文不考虑) (5) 网络失效(本文不考虑) 2. VSTS高可用性方案 (1)无备机的备份方案 (2) 有备机的备份方案 (3) 热待机系统 (4) 热待机系统+数据库群集 3. 无备机的备份方案 基于数据库的备份与恢复技术。 如果数据损坏,通过恢复到上一次备份点上,保证VSTS的可用性。恢复时间: 30分钟。 如果数据库服务或应用层服务失效,则重装TFS,并恢复数据库。恢复时间:一天。 成本:一台TFS服务器,一台可共享文件的服务器。 4. 有备机的备份方案 基于数据库的备份与恢复技术。 如果数据损坏,通过恢复到上一次备份点上,保证VSTS的可用性。恢复时间: 30分钟。 如果数据库服务或应用层服务失效,将数据库恢复同名的备机上。恢复时间:2小时。 成本:两台TFS服务器,一台可共享文件的服务器。 5. 热待机系统 两台在线的TFS应用服务器,一台主服务器,一台备用服务器,此方案能保证应用层的主可用性。 如果数据损坏,通过恢复到上一次备份点上,保证VSTS的可用性。恢复时间:30分钟。 如果应用层服务失效,启用另一台备用的应用服务器。恢复时间:10分钟。 如果数据库服务失效

让TFS忽略packages文件夹的更改

旧巷老猫 提交于 2019-12-26 12:23:14
很多时候我们需要使用 Nuget 进行包管理,这时在我们的解决方案文件夹下便会产生一个名为 package 的文件夹 由于 Nuget 包经常要更新,TFS 会自动把这些包放到 正在挂起的更改 处,这对于强迫症十分不友好(这里面明明不是我写的东西) 于是,这里提供两种方法让 VS 不监视 签入,package 的更新 1、在 团队资源管理器 –> 正在挂起更改 –> 包含的更改 –> 视图选项 –> 勾上 显示解决方案的更改 2、在解决方案的文件夹下,新建一个文本文件,名为 .tfignore 内容为 \packages 如果需要更复杂的配置,可以参考以下信息修改: ################################################################################ # # 此文件中与 filespecs 匹配的本地项将不会添加到版本 # 控制中。可签入此文件以便与其他人共享排除内容。 # # 通配符为 * 和 ?。模式以递归方式匹配,除非 # 该模式使用了 \ 字符作为前缀。 # # 你可以在模式前面放置路径以使其更加明确。如果添加路径, # 则在路径部分不允许使用通配符。 # # 行首的 # 字符指示该行是一条注释。 # # ! 前缀将使模式无效。在某个项由树中更高级别 # 的 .tfignore

Using personal library .jar in TFS Online build

两盒软妹~` 提交于 2019-12-25 21:06:10
问题 I'm trying to start doing continuous integration on my Java/Maven project, using Team Foundation Server. I am trying to build two projects: a library, and a main project. When I compile the main project from my local box, it's currently getting the library.jar file from a local Artifactory server (which my superiors would like to go away). I've gotten the library to build, being triggered by changes to the git repo. I would like the main project to be able to use this generated artifact when

TFS 2017 Update1: Programmatically updating TFS Release Definitions removes server phase (manual intervention)

江枫思渺然 提交于 2019-12-25 16:54:52
问题 In TFS 2017 Update 1 after downloading programmatically a release definition with REST api, I edited the downloaded json and uploaded again programmatically. The changes are present. However the server phase of manual intervention is missing in the environments after the changes. Can someone else reproduce it? The program C# to download and upload the release definition is at my github page githubpage 回答1: Use api-version=3.2-preview.3 instead of 3.0-preview.2 when you update the release

git filter in on premise TFS 2015 Update 3

一曲冷凌霜 提交于 2019-12-25 16:48:53
问题 If the repository is git behind our TFS project there is no way to filter the repository by source folder. The build always pull the whole repository. We have multiple solutions in the TFS project we want to build separetly. We can do it, but it is slow because we cannot filter the source folder to download. The other problem that we cannot add folder to CI trigger. So all the projects will be build after a push in any projects. I know that the Team Services already support path filters for

Visual Studio 2012 not integrating properly with TFS explorer

给你一囗甜甜゛ 提交于 2019-12-25 15:29:06
问题 When I drag a file in Solution Explorer I expect TFS to perform a matching move. It doesn't. Similarly if I rename a file/add/delete I have to repeat the operation in TFS explorer. They are two separate programs that inhabit the same shell by coincidence. Can I get them to play better together? Back in the old days I recall a Source Control Bindings dialog. I cannot find that in my VS2012. Full disclosure. I use both TFS and SVN/Ankh on this machine. I frequently change Tools | Options |

TFS 2013 environment variables always empty

回眸只為那壹抹淺笑 提交于 2019-12-25 14:24:20
问题 I've defined custom arguments in my xaml build script and provided values: Then In my build I get the following instead of actual TF_BUILD_BUILDDIRECTORY. This is the string that writes: "dotCover Report..." String.Format("dotCover Report Path: {0}\{1}", DotCoverReportPath, DotCoverReportFileName) It's not translating to actual BUILDDIRECTORY path. What am I doing wrong? I've hit "refresh" several times and still no go. I wanted to get "C:\temp..." etc 回答1: Possible duplicate with this case