heinrich-ulbricht / spmt-plus

Patching the SharePoint Migration Tool to do what we need
1 stars 1 forks source link

Unable to run currently #1

Open maptan opened 1 month ago

maptan commented 1 month ago

Trying to load your script, but I'm unable to run.

Without changes, it will be missing a lot of references. I've added so far the references below from line 92:

$null = Add-Type `
    -TypeDefinition $source -IgnoreWarnings -ErrorAction Continue `
    -ReferencedAssemblies "mscorlib","System","System.Core","System.Linq","System.Collections",
        "System.Management.Automation","System.Linq.Expressions","System.Net","System.Net.Primitives",
        "$spmtModulePath\Microsoft.Identity.Client.dll",
        "$spmtModulePath\microsoft.sharepoint.client.dll",
        "$spmtModulePath\microsoft.sharepoint.client.runtime.dll",
        "$spmtModulePath\microsoft.sharepoint.migrationtool.migrationlib.dll",
        "$spmtModulePath\microsoft.sharepoint.migration.common.dll",
        "$spmtModulePath\microsoft.sharepoint.migrationtool.powershell.dll",
        "$spmtModulePath\Microsoft.Identity.Client.Extensions.Msal.dll" 

After that, Id displays lots of conversion errors or name does not exists in current context messages...

I'm running: $PSVersionTable PSVersion 7.4.5 PSEdition Core

Harmony is loaded; version: 2.3.3.0; ImageRuntimeVersion: v4.0.30319; TargetFramework: .NETFramework,Version=v4.8

Can you check / update script or detail requirements for use?

heinrich-ulbricht commented 1 month ago

Hi @maptan, I can imagine that in the last 2 years a lot has changed in the SPMT and some adjustments would have to be made. I haven't used the SPMT for a while so I won't be making any changes. Also, in the end the maintenance cost of such a custom solution was quite high as the script might break with any new release of the SPMT. Nevertheless, it was a fun exercise. Feel free to take over. I'll be archiving the repo soon.