I need to create one custom job for SharePoint 2007. But the harden is that is on another server while i need to develop that on my system using visual studio 2010. I have dll of SharePoint 2007 to use.

Now, I know couple of thing...

1) I need to take Class Library Project and Add Reference of that SP2007 Dll....

2) I Need to inherit one class from SPJobDefinition and override Execute Method

3) I need to inherit one class from SPFeatureReceiver and override FeatureActivated

1 Answer
1

2) You don't copy any DLLs anywhere, you would use WSPs to deploy your solution

3) WSP deployment will register the DLL in the GAC. VS2010 has tokens to get the PublicKeyToken. Scope of the Feature depends on where you want the Timer Job to be created. It's usually Web Application

4) This isn't a web part, it's a timer job ;)

5) You need to properly implement a proper Application Lifecycle Management system where you version control your solution source and control the upgrades of the WSP.

6) Bonus: Looks like you might need a primer in SharePoint Development. I would highly consider looking into a bootcamp development course local to you.