3

我对托管在 codeplex 上的项目的源代码进行了一些更改。我不是该项目的作者或编辑 - 只是一个用户。但我想将更改作为补丁提交。

Codeplex 有一个很好的方法来上传补丁......

替代文字

如何从 Visual Studio 中生成补丁或差异?如何生成其他 VS 开发人员可以应用来更新他的源代码的东西? VS 是否具有补丁/差异功能?

谢谢。

4

1 回答 1

2

使用TFS 命令行工具 tf.exe

tf diff  <file>  | more

示例输出:

61,65c61
<
<             this.countdownDelay = (menuItem.Text == "none")
<                 ? 0
<                 : int.Parse(menuItem.Text, CultureInfo.InvariantCulture);
<
---
>             this.countdownDelay = int.Parse(menuItem.Text, CultureInfo.InvariantCulture);
136d131
<                 this.AddCountdownTimeMenuItem("none", parentItem);
于 2009-11-05T13:13:33.787 回答