I created a new sharepoint project in Visual studio 2010 and by mistake it was sandboxed solution, after finishing my development its wont build because i am adding items to controltemplates and its saying i need to have the project as farm solution, so how to change th eproject type ?
Ok, Found it its a Project property so you need to select you project then in the properties pane (F4) you will find a property (SandBoxedSolution).