27 February 2017

Converting SharePoint site from Version 2013 to 2016

In this time Microsoft did a good job with Migration SharePoint 2013 to SharePoint 2016, and within a few hours it is possible to upgrade the site from 2013 to 2016
Even the code in Visual Studio was easy to upgrade  fron VS 2013 to VS 2015 update 3 with Office package

I did this steps
  1.  Save wsp website (version 2013)
  2. Copy (backup restore) the DataBase from SQL 2012 DB 2016, and to ensure that it has sp admin privileges DB_Owner to the new DB
  3. In Central Adminstration -> Manage web applications

    a. Creating a Web Application with DB temporary
    b. Create a Site Collection
    c. Setting up the site in the hosts found in the C:\Windows\System32\drivers\etc\ with a local IP
  4.  Add the wsp site (Old from 2013)
    a. In powerShell -> Add-SPSolution -LiteralPath PATH
    b. Installing the solotion site (or in powerShell -> Install-SPSolution or in Central Adminstration -> System Settings -> Manage farm solutions)
  5. Remove the temporary DB site (in Central Adminstration -> Application Management -> Databases -> Manage content databases DB click on the question and select the Remove content database and click OK)
  6. Temporarily connect the DB from 2013 (Test-Mount-SPContentDatabase "DB_FROM_2013" -WebApplication "NEW_WEB_APP" in powershell)
  7. If it is good then, connect the DB from 2013 (Mount-SPContentDatabase "DB_FROM_2013" -WebApplication "NEW_WEB_APP" in powershell)
  8. Run Upgrade-SPSite -VersionUpgrade in powerShell
  9. In your own time, Do a Conversion of the wsp from 2013 to 2016 (Big code works great, this is becuse Microsoft didn't change the mapping of layouts folder - it still 15)
  10. Good Luck :)