<p>Creating a patch is very easy in SubVersion, With Tortoise, you right-click and select Create Patch. But for the life of me, I can't find this functionality in TFS. Is this possible?</p>

<p>If not, what's the standard way to submit patches in open source TFS hosted projects (a la CodePlex)?</p>

[{'answer_id': 52242, 'author': 'Curt Hagenlocher', 'author_id': 533, 'author_profile': 'https://Stackoverflow.com/users/533', 'pm_score': 7, 'selected': True, 'text': '<pre><code>tf diff /shelveset:shelveset /format:unified\n</code></pre>\n\n<p><strong>Edit:</strong> This writes to standard output.  You can pipe the output to a file.</p>\n\n<p>For more options, see <a href="http://msdn.microsoft.com/en-us/library/6fd7dc73%28v=vs.100%29.aspx" rel="noreferrer">Difference Command</a>.</p>\n'}, {'answer_id': 80807, 'author': 'jwanagel', 'author_id': 15118, 'author_profile': 'https://Stackoverflow.com/users/15118', 'pm_score': 2, 'selected': False, 'text': "<p>Because TFS doesn't natively support patch files, the most common thing I see people do on CodePlex is simply zip the modified files and upload the zip.  The project coordinator then does a diff against their own checkout.</p>\n\n<p>However since CodePlex also supports TortoiseSVN, more and more people are using that to create their patch files.</p>\n"}, {'answer_id': 25836689, 'author': 'Greg Bray', 'author_id': 17373, 'author_profile': 'https://Stackoverflow.com/users/17373', 'pm_score': 0, 'selected': False, 'text': '<p>I wrote a blog post about a similar issue where I used the TF.exe command and 7Zip to <a href="http://codeblog.theg2.net/2014/09/create-tfs-patch-file-with-pending.html" rel="nofollow">create a TFS patch file</a> that could then be applied on another TFS server or workspace. I posted the the Powershell scripts at <a href="https://github.com/gbrayut/CodeBlog/tree/master/20140914_TFS" rel="nofollow">Github</a>, which can be used to Zip up any pending changes on one workspace and then apply them to a different server. It would have to be modified to use a changeset instead of pending changes, but that shouldn\'t be too difficult to accomplish.</p>\n'}]
['https://Stackoverflow.com/questions/52234', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/736/']