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
The source code is the most recently published edition of the book and this is the default branch following the clone command. However, you can switch to a different branch, v6.0 for example, with the command:
26
+
24
27
```
25
-
$ git checkout v6.0
28
+
git checkout v6.0
26
29
```
27
30
28
31
### Build
29
32
30
33
**EssentialCSharp.sln** is the project's main solution, open this with Visual Studio and _Build All_.
31
-
34
+
32
35
For those using the command line, build all the projects from the /EssentialCSharp/ directory with these commands:
36
+
33
37
```
34
-
$ dotnet restore EssentialCSharp.sln
35
-
$ dotnet build EssentialCSharp.sln
38
+
dotnet restore EssentialCSharp.sln
39
+
dotnet build EssentialCSharp.sln
36
40
```
41
+
37
42
### Run
38
43
39
44
Navigate to an individual project in the /EssentialCSharp/src/(project)/ directory and run the code. The example below is for Chapter01 with the user entering _1.1_ to execute the listing number.
40
45
41
-
To run a listing you must run the the project that contains it. For example, to run Listing 1.1 you must navigate to Chapter01 in the
46
+
To run a listing you must run the the project that contains it. For example, to run Listing 1.1 you must navigate to Chapter01 in the
42
47
_Solution Explorer_ and set Chapter01 as the startup project. In Rider this can be done by locating the desired project in the _Explorer_ tab, right clicking on the project and clicking _run_.
43
48
44
49
```
@@ -56,13 +61,15 @@ Press any key to exit.
56
61
$
57
62
```
58
63
59
-
Documentation for .NET CLI tools can be found here:
64
+
Documentation for .NET CLI tools can be found here:
0 commit comments