by mreynolds » Sat May 03, 2008 2:20 am
1. Open your project and select File>Add>New Project... and select a Setup And Deployment project.
2. In the solution explorer right click on the setup project and select View>File System.
3. In the File System window right click on the Application Folder selection under File System on Target Machine. From the right click menu select Add>Project Output...
4. When the Add Project Output Group dialog comes up select Primary output, then click OK.
That should add all of the dependencies.
Now "Class not registered" may be referring to the Global Assembly Cache. If so then right click on the File System on Target Machine entry in the File System window and select Add Special Folder>Global Assembly Cache Folder. Then go back to the Application Folder selection and cut the DLL that you want in the GAC, switch to the Global Assembly Cache folder and paste it.