Perform all these steps on a machine with SQL server installed.
How to Create a DLL file in .NET Framework using Visual Studio
Some good Debugging tips