How to open old Solution files in SharePoint 2010

SharePoint 2010 object model contains many changes and enhancements, but our custom code will still compile and, will run as expected. You should however, rewrite and recompile any code that refers to files and resources in "12 hive. If you given relative path to_layouts its fine no need to recompile it should work.