【问题标题】:Adding TortoiseSVN Context menus to Visual Studio Express将 TortoiseSVN 上下文菜单添加到 Visual Studio Express
【发布时间】:2017-08-31 09:39:23
【问题描述】:

我目前正在使用 Visual Studio Express 进行 C# 开发,需要将 Tortoise SVN 集成到与外部工具的上下文菜单相同的位置。

我需要在此处显示以下命令。

  1. 更新到最新版本

  2. 提交

  3. 清理

  4. 合并

  5. 查看历史记录

这可以实现吗?

PS:不要让我使用 Visual Studio Community,我现在被 Express 卡住了。

编辑:我已经知道如何将上下文菜单添加到 Visual Studio Express,这是相同的 SO 链接。

Add an Item to the visual studio folder right-click menu within AddIn

我只是不清楚实际的 SVN 命令。

编辑:我找到了相同的解决方案并将其粘贴为答案,感谢@Patrick 的指导。

【问题讨论】:

  • AFAIK express 不允许您安装扩展。
  • msdn.microsoft.com/de-de/library/9814d200(v=vs.100).aspx 描述了如何将外部工具添加到 VS 2010。也许它会有所帮助。
  • @SebastianRichter 请尝试链接到英文内容而不是德文内容。
  • @SebastianRichter 是的,你可以,只需将 URL 中的 de-de 替换为 en-us *en-us 或 en-gb 我猜
  • 我想我需要稍微编辑一下我的问题,我知道如何添加上下文菜单,我不清楚 SVN 命令。下面的网站提供了有关如何完成此操作的详细示例。 nickmeldrum.com/blog/…

标签: c# svn tortoisesvn visual-studio-express


【解决方案1】:

感谢@Patrick,也感谢这个显示了几秒钟的博客

http://garrys-brain.blogspot.in/2007/07/tortoisesvn-and-visual-studio.html

完全可以将 TortoiseSVN 命令添加为外部工具,我已经使用外部工具对话所需的每个参数的值来完成此操作,希望这对其他人也有帮助。

https://pastebin.com/L5rREjNL

Title   CommandLine Arguments   WorkingDir
Commit  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:commit /path:"$(SolutionDir)" /notempfile  $(SolutionDir)

Update  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:update /path:"$(SolutionDir)" /notempfile  $(SolutionDir)

History c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:log /path:"$(ItemPath)" /notempfile    $(ItemDir)
Diff    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:diff /path:"$(ItemPath)" /notempfile   $(ItemDir)

Blame   c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:blame /path:"$(ItemPath)" /notempfile  $(ItemDir)

Revert  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:revert /path:"$(SolutionDir)" /notempfile  $(SolutionDir)

Modifications   c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:repostatus /path:"$(SolutionDir)" /notempfile  $(SolutionDir)

Edit Conflicts  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:conflicteditor /path:"$(ItemPath)" /notempfile $(ItemDir)

Resolve c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:resolve /path:"$(ItemPath)" /noquestion /notempfile    $(ItemDir)

Repository  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:repobrowser /path:"$(SolutionDir)" /notempfile $(SolutionDir)

Project History c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:log /path:"$(SolutionDir)" /notempfile $(SolutionDir)

Add Solution    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:import /path:"$(SolutionDir)" /notempfile  $(SolutionDir)

Branch/Tag  c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:copy /path:"$(SolutionDir)" /notempfile    $(SolutionDir)

Settings    c:\program files\TortoiseSVN\bin\tortoiseproc.exe   /command:settings /path:"$(SolutionDir)" /notempfile    $(SolutionDir)

【讨论】:

    【解决方案2】:

    这些资源应该为您提供了完成此任务的所有部分:

    1. How to integrate TortoiseSVN into Visual Studio
    2. Automating TortoiseSVN

    这是一个创建上下文菜单(你说你知道怎么做)并将正确的参数传递给 Tortoise 的问题。

    【讨论】:

    • 谢谢,我在某个地方找到了一些博客,里面有一些例子,会更新正确答案,这样可以节省人们的时间。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-05-21
    • 1970-01-01
    相关资源
    最近更新 更多