Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Thrift Wiki" for change 
notification.

The following page has been changed by HannesBaldursson:
http://wiki.apache.org/thrift/ThriftUsageC%23

The comment on the change is:
created page with some basic info

New page:
= Getting started =
To be able to use the C# source code generated by the Thrift compiler in your 
project you need reference {{{Thrift.dll}}} in your project to gain access to 
Thrift's namespace.

== Building Thrift.dll using Visual Studio ==

 1. If you haven't done so already 
[http://incubator.apache.org/thrift/download/ download a snapshot] of the 
Thrift source code and extract it. - 
[http://gitweb.thrift-rpc.org/?p=thrift.git;a=snapshot;h=HEAD;sf=tgz Direct 
link to the snapshot]
 1. Open the {{{Thrift.sln}}} solution file under {{{thrift/lib/csharp/src}}}
 1. Build Solution by pressing ''F7''

You should now have the required Thrift.dll located under 
{{{thrift/lib/csharp/src/bin/Debug/Thrift.dll}}}

== Reference Thrift.dll in your application (in Visual Studio) ==

 1. Open up your application solution in Visual Studio.
 1. Under the ''Project'' menu, click {{{Add Reference}}}
 1. Browse to and select the freshly built Thrift.dll

You can now use the Thrift namespace in your source code:
{{{
using Thrift;
using Thrift.Protocol;
using Thrift.Server;
}}}

Reply via email to