You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 12, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+48-3Lines changed: 48 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ GitHubLink let's users step through your code hosted on GitHub! **This makes sym
7
7
8
8

9
9
10
-
The idea is based on the [SourceLink project](https://github.com/ctaggart/SourceLink"SourceLink project"). However it requires FAKE and no everyone likes to write code in F#. GitHubLink is available as console application and can be references as assembly as well to be used in other .NET assemblies.
10
+
The idea is based on the [SourceLink project](https://github.com/ctaggart/SourceLink"SourceLink project"). However it requires FAKE and not everyone likes to write code in F#. GitHubLink is available as console application and can be references as assembly as well to be used in other .NET assemblies.
11
11
12
12
The advantage of GitHubLink is that it is fully customized for GitHub. It also works with GitHub urls so it **does not require a local git repository to work**. This makes it perfectly usable in continuous integration servers such as [Continua CI](http://www.finalbuilder.com/Continua-CI"Continua CI").
13
13
@@ -17,9 +17,9 @@ When using GitHubLink, the user no longer has to specify symbol servers. He/she
17
17
18
18

19
19
20
-
# Using GitHubLink #
20
+
# Using GitHubLink as command line tool#
21
21
22
-
Using GitHubLink is very simple:
22
+
Using GitHubLink via the command line is very simple:
23
23
24
24
1. Build the software (in release mode with pdb files enabled)
25
25
2. Run the console application with the right command line parameters
@@ -57,6 +57,51 @@ When you need to log the information to a file, use the following command line:
GitHubLink is built with 2 usages in mind: command line and code reference. Though most people will use the command line version, it is possible to reference the executable and use the logic in code.
63
+
64
+
The command line implementation uses the same available API.
65
+
66
+
## Creating a context ##
67
+
68
+
To link files to a GitHub project, a context must be created. The command line version does this by using the *ArgumentParser* class. It is also possible to create a context from scratch as shown in the example below:
It is possible to create a context based on command line arguments:
76
+
77
+
var context = ArgumentParser.Parse(@"c:\source\catel -u https://github.com/catel/catel -b develop");
78
+
79
+
## Linking a context ##
80
+
81
+
Once a context is created, the *Linker* class can be used to actually link the files:
82
+
83
+
Linker.Link(context);
84
+
85
+
# How to get GitHubLink #
86
+
87
+
There are three general ways to get GitHubLink:.
88
+
89
+
## Get it from GitHub ##
90
+
91
+
The releases will be available as separate executable download on the [releases tab](https://github.com/GeertvanHorrik/GitHubLink/releases) of the project.
92
+
93
+
## Get it via Chocolatey ##
94
+
95
+
If you want to install the tool on your (build) computer, the package is available via [Chocolatey](https://chocolatey.org/). To install, use the following command:
96
+
97
+
cinst GitHubLink
98
+
99
+
## Get it via NuGet ##
100
+
101
+
If you want to reference the assembly to use it in code, the recommended way to get it is via [NuGet](http://www.nuget.org/).
102
+
103
+
**Note that getting GitHubLink via NuGet will add it as a reference to the project**
104
+
60
105
# How does it work #
61
106
62
107
The SrcSrv tool (Srcsrv.dll) enables a client to retrieve the exact version of the source files that were used to build an application. Because the source code for a module can change between versions and over the course of years, it is important to look at the source code as it existed when the version of the module in question was built.
0 commit comments