aboutsummaryrefslogtreecommitdiff
path: root/examples/CSHARP-README.txt
blob: f6dc5aa533208eb54aa1acb6443ff0d188e35b3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
To build the C# code:

1) Copy protoc.exe, libprotoc.dll and libprotobuf.dll into
this directory from the native code output (or use a path when
running protoc.exe below)

2) Copy Google.ProtocolBuffers.dll from the built C# library code to
this directory

3) Run this to generate the code:
protoc --csharp_out=. addressbook.proto

4) Build the AddPerson app:
csc /r:Google.ProtocolBuffers.dll AddPerson.cs AddressBookProtos.cs

5) Build the ListPeople app:
csc /r:Google.ProtocolBuffers.dll ListPeople.cs AddressBookProtos.cs