The Elements file is a kind of glue that binds your code to SP Event framework. element is a placeholder for the full assembly name.
Custom Content types help us with defining the data-structure while layouts help us define the presentation.If you want to see what VS 2010 is doing behind the scenes you can peek into the ‘Output’ window. Essentially VS is taking care of all the plumbing work needed to deploy and register your feature with Share Point.All this was possible through the excellent WSP builder tool in VS 2008 too, but you still needed to attach the debugger to the process manually. VS will start an IE instance and load the required site up and attach the debugger to the process for you. Step 7: Setup another breakpoint inside the if(…) condition. Don’t be surprised when this breakpoint is not hit. Level property value you would notice it’s still Draft hence the ‘if’ condition is not satisfied and no publish happened.Step 4: Click Finish and wait for Visual Studio to do the skeleton work for you.In VS 2008 you have to do most of the skeleton work yourself, but in VS 2010 it’s all setup for you.