Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Upgrade site collection from 2010 to 2013 - custom site definitions

$
0
0

Hi.

This question might not be in the right forum but I didn't think it would be in the Upgrade forum either since there are custom code involved.

Anyway, I installed a fresh SharePoint 2013 RTM and then installed all my 2010 WSP's containing site columns, contenttypes, masterpages and my own custom site definitions.

Then I did a database attach upgrade from my SP 2010 environment. And it all worked like a charm, almost everything worked. (Kinnda suprised here)

So, then i decided to make an "evalution upgrade". This also worked like a charm. So now I thought that hey lets try a full upgrade. So from the UI I choose upgrade and SharePoint runs the health check. Then I got that all my custom site def's were missing:

You need to fix the following problem(s) before upgrading:  
Missing Site Templates

<list of sites using my custom def>

Ok, I guessed that the problem was that my site definitions resided in the 14 hive. So I fixed my custom site definitions project so that it would deploy in the 15 hive. Added the following lines in my .csproj:

    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <TargetOfficeVersion>15.0</TargetOfficeVersion>

Well, the files ended up in the 15 hive and now I can create new sites based on my site defs when the site collection runs in 2010 mode, but the health analyzer still tells me that my site def's are missing.

Any idea why? I tried to compare a fresh SharePoint 2013 site def with my "old" one but can't find anything that differs..

Regards Thomas

 

  


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>