I migrated a SharePoint 2010 site collection containing a custom site definition to SharePoint 2013 using database attach. The site collection has several sub sites created using the custom site definition. I also deployed the SP 2010 WSP containing the Site Definition to 14 hive initially. The new site collection worked properly in SP 2010 mode.
Now in order to upgrade to SP 2013, I upgraded the project containing the site definition in Visual Studio 2012. I created a new WSP and deployed it to 15 hive. I can see the webtemp_siteDefinitionName.xml file in
\15\TEMPLATE\1033\XML. Also if I run the PowerShell command:
Get-SPWebTemplate -CompatibilityLevel 15, the custom site definition shows up. However, when I try to perform the actual upgrade either from UI or Powershell command
Upgrade-SPSite I get the error:
The following sites are using templates that are not yet supported after upgrade