using Microsoft.SharePoint.Client; using System; using System.IO; using System.Net; namespace ConfluenceToSharePointMigrator { class Program { static void Main(string[] args) { Console.WriteLine("Enter SharePoint link: "); string sharePointSite = Console.ReadLine(); Console.WriteLine("Enter Confluence exported location: "); string confluenceExportedLocation = Console.ReadLine(); //Sharepoint Login var authManager = new OfficeDevPnP.Core.AuthenticationManager(); using (ClientContext ctx = authManager.GetWebLoginClientContext(sharePointSite)) { Migration migration = new Migration(); migration.MigrateConfluenceToSharePoint(sharePointSite, confluenceExportedLocation, ctx); } } } }