Search code examples
c#apireddit

How do I use RedditSharp in Visual Studio (2012)?


I am making a C# Web Form application and I want to use RedditSharp. https://github.com/SirCmpwn/RedditSharp

I've never used an API in C#, this would be my first time using something outside of the C# generics. Could someone help me understand how to import it to use it?


Solution

    1. Create C# Web Forms project in Visual Studio
    2. Download RedditSharp code from Github
    3. Compile RedditSharp into DLL (build enclosed solution, grab DLL from the bin/release folder or wherever it builds to)
    4. Add a reference from your project to RedditSharp DLL
    5. Check examples at https://github.com/SirCmpwn/RedditSharp, add something like that to your code
    6. Don't forget to add "using RedditSharp;" to the top of your code file.