[BUG] Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=6.0.0.0' #3057
-
Reporting an Issue or Missing FeatureIssue Expected behaviorGet PnP Tenant Site Actual behaviorReceiving error: Steps to reproduce behaviorDeploy code to an Azure Function. Run Connect-PnPOnline and Get PnP TenantSite: What is the version of the Cmdlet module you are running?Using Powershell 7.2.9 with Function Runtime 4.17.3 Which operating system/environment are you running PnP PowerShell on?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
hi @DavidSchmidt1 , seems like you are loading some Az modules. If not using, can you please remove them from requirements.psd1 file. If you need to use , then unfortunately we can't do anything about it because Az modules are using a different version of the DLL which conflicts with the one that we are using. We can't control this scenario unfortunately. Maybe you can try loading PnP commands in a different thread , that can help ? https://pnp.github.io/powershell/articles/azurefunctions.html |
Beta Was this translation helpful? Give feedback.
-
The issue with colliding assemblies should now be fixed! |
Beta Was this translation helpful? Give feedback.
hi @DavidSchmidt1 , seems like you are loading some Az modules.
If not using, can you please remove them from requirements.psd1 file.
If you need to use , then unfortunately we can't do anything about it because Az modules are using a different version of the DLL which conflicts with the one that we are using. We can't control this scenario unfortunately.
Maybe you can try loading PnP commands in a different thread , that can help ?
https://pnp.github.io/powershell/articles/azurefunctions.html