Build the Splunk SDK for C# v2.0 and examples

You can view premade examples of the Splunk® SDK for C# in action. You first need to download the SDK as a ZIP file if you haven't already, and then extract the contents of the file. If you want, you can verify the integrity of the downloaded ZIP file:

Then, install and build the SDK examples.

Build the examples using Visual Studio

If you are using Visual Studio:

  1. Navigate to the extracted Splunk SDK for C# directory, open it, and then double-click the splunk-sdk-csharp-pcl directory.

  2. Double-click splunk-sdk-csharp-pcl.sln to open the SDK solution in Visual Studio.

  3. On the Build menu, click Build Solution.

This will build the SDK, the examples, and the unit tests. For more information about the examples, see Examples.

Note: You can make things easier by saving your host, port, scheme, and login information in the .splunkrc file so you don't have to enter them as command-line arguments every time you run an example. For more information, see Save your connection info.

Build the examples using Xamarin Studio

If you are using Xamarin Studio:

  1. In Xamarin Studio, on the File menu, click Open.

  2. Navigate to the location on your hard disk where you extracted the contents of the ZIP file, and open the splunk-sdk-csharp-pcl.sln solution file.

  3. On the Build menu, click Build All.

This will build the SDK, the examples, and the unit tests. For more information about the examples, see Examples.

Note: You can make things easier by saving your host, port, scheme, and login information in the .splunkrc file so you don't have to enter them as command-line arguments every time you run an example. For more information, see Save your connection info.