|
1
|
<h1>Integrating Fossil in the Microsoft Express 2010 IDE</h1> |
|
2
|
|
|
3
|
<i>Contributed by Gilles Ganault on 2013-05-24.</i> |
|
4
|
|
|
5
|
The Express version of Visual Studio doesn't support add-in's and plug-in's, |
|
6
|
but it's not an issue since it's still possible to use Fossil through the |
|
7
|
External Tools menu and Fossil is a CLI application anyway: |
|
8
|
|
|
9
|
<ol type="1"> |
|
10
|
<li>Tools > Settings > Expert Settings</li> |
|
11
|
<li>Tools > External Tools, where the items in this list map |
|
12
|
to "External Tool X" that we'll add to our own Fossil |
|
13
|
menu later: </li> |
|
14
|
<ol type="1"> |
|
15
|
<li>Rename the default "[New Tool 1]" to eg. |
|
16
|
"Commit" 2. |
|
17
|
</li> |
|
18
|
<li>Change Command to where Fossil is located eg. |
|
19
|
"c:\fossil.exe"</li> |
|
20
|
<li>Change Arguments to the required command, eg. |
|
21
|
"commit -m". |
|
22
|
The user will be prompted to type the comment that Commit expects</li> |
|
23
|
<li>Set "Initial Directory" to point it to the work directory |
|
24
|
where the source files are currently checked out |
|
25
|
by Fossil (eg. c:\Workspace). It's also possible to use system |
|
26
|
variables such as "$(ProjectDir)" instead of hard-coding the path</li> |
|
27
|
<li>Check "Prompt for arguments", since Commit |
|
28
|
requires typing a comment. Useless for commands like Changes |
|
29
|
that don't require arguments</li> |
|
30
|
<li>Uncheck "Close on Exit", so we can see what Fossil says |
|
31
|
before closing the DOS box. Note that "Use Output Window" |
|
32
|
will display the output in a child window within the IDE instead of |
|
33
|
opening a DOS box</li> |
|
34
|
<li>Click on OK</li> |
|
35
|
</ol> |
|
36
|
<li>Tools > Customize > Commands</li> |
|
37
|
<ol type="1"> |
|
38
|
<li>With "Menu bar = Menu Bar" selected, click on "Add |
|
39
|
New Menu". A new "Fossil" menu is displayed in the |
|
40
|
IDE's menu bar</li> |
|
41
|
<li>Click on "Modify Selection" to rename it |
|
42
|
"Fossil", and...</li> |
|
43
|
<li>Use the "Move Down" button to move it lower in |
|
44
|
the list</li> |
|
45
|
</ol> |
|
46
|
<li>Still in Customize dialog: In the "Menu bar" combo, select |
|
47
|
the new Fossil menu you just created, and Click on "Add Command...": |
|
48
|
From Categories, select Tools, and select "External Command 1". |
|
49
|
Click on Close. It's unfortunate that the IDE doesn't say which command |
|
50
|
maps to "External Command X".</li> |
|
51
|
</ol> |
|
52
|
|