The first step is install Bot Framework template for Visual Studio:
https://docs.botframework.com/en-us/downloads/
Next, what I would recommend to you is create a sample bot using this VS template, then just change the code with this one you've downloaded.