-
-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathVisualStudio.cs
More file actions
39 lines (37 loc) · 1.54 KB
/
VisualStudio.cs
File metadata and controls
39 lines (37 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
static partial class Implementation
{
public static Definition VisualStudio()
{
static string LeftArguments(string temp, string target)
{
var tempTitle = Path.GetFileName(temp);
var targetTitle = Path.GetFileName(target);
return $"/diff \"{target}\" \"{temp}\" \"{targetTitle}\" \"{tempTitle}\"";
}
static string RightArguments(string temp, string target)
{
var tempTitle = Path.GetFileName(temp);
var targetTitle = Path.GetFileName(target);
return $"/diff \"{temp}\" \"{target}\" \"{tempTitle}\" \"{targetTitle}\"";
}
return new(
Tool: DiffTool.VisualStudio,
Url: "https://docs.microsoft.com/en-us/visualstudio/ide/reference/diff",
AutoRefresh: true,
IsMdi: true,
SupportsText: true,
UseShellExecute: true,
RequiresTarget: true,
Cost: "Paid and free options",
BinaryExtensions: [".svg"],
OsSupport: new(
Windows: new(
"devenv.exe", new(
LeftArguments,
RightArguments),
@"%ProgramFiles%\Microsoft Visual Studio\*\Preview\Common7\IDE\",
@"%ProgramFiles%\Microsoft Visual Studio\*\Community\Common7\IDE\",
@"%ProgramFiles%\Microsoft Visual Studio\*\Professional\Common7\IDE\",
@"%ProgramFiles%\Microsoft Visual Studio\*\Enterprise\Common7\IDE\")));
}
}