This post explains why and how to set up a development environment for building custom components for the LINQPad Driver for Sitecore 1.8 and greater.
While I've made every effort to ensure the LINQPad Driver for Sitecore works "out of the box" and that the latest version of Sitecore is supported, I can't guarantee it will work with your particular Sitecore environment. This is because I have no idea how you've configured your environment.
For example, you might have added a custom component that is included in the initialize pipeline. The LINQPad Driver for Sitecore doesn't run all of the same initialization logic that Sitecore runs when it starts. So you need a way to tell the LINQPad Driver for Sitecore to run your initialization code.
And there are other cases where you might need the driver to do more than it does by default. I explained the various extension points the driver supports in my previous post, but here's a quick review:
I strongly recommend you extend the default components that are provided with the driver. They include logic that is required is most cases. Here is a list of the default types:
Now you can create custom components.
You can configure the project so you can use the Visual Studio debugger by following these steps:
C:\Program Files (x86)\LINQPad4\LINQPad.exe
Now you should be able to build and debug custom components. If you've found a reason to create a custom component, please share your experience in the comments. Same with any suggestions for more functionality that I should include in the default components.