You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Document change in assembly loading behaviour #4249
Assembly loading behaviour was changed in PowerShell 6.2. Any assemblies listed in FileList of a module manifest will be loaded, although this will fail for native assemblies and prevent them being loaded properly later.
As such, native assemblies should always be excluded from the FileList entries in a module manifest.
Issue Details
Version(s) of document impacted
Impacts 6.next document
Impacts 6 document (6.2)
Impacts 5.1 document
Impacts 5.0 document
Impacts 4.0 document
Impacts 3.0 document
Reason(s) for not selecting all version of documents
The documented feature was introduced in selected version of PowerShell
This issue only shows up in selected version of the document
Steve Lee (@SteveL-MSFT) We need a more complete description that we can add to the appropriate docs. Also, is there plans to address any of this in PSv7?
😁 I can do my best, but I'm fairly sure there'll be parts I don't know well enough. I'm not really sure why the behaviour was changed to begin with, among other things.
If they aren't able to help out here for whatever reason I'm sure I can chat to a few other folx who know the background info better and help y'all put something together as best I can! 😊
Aditya Patwardhan (@adityapatwardhan) What I need is a full description of the load behavior so that I can update the docs to reflect the new behavior.
That issue needs committee review. If the issue is going to be fixed, then we do not need to change the docs, if issue is not fixed we need to update the docs.
Update would be something like, probably a note.
[!NOTE] All the DLL files listed in FileList property of the module manifest will be attempted to load. If a native DLL is in the file list, it will fail to load in the process and the error is ignored. All managed DLLs will be loaded in the process.
We introduced a regression from 6.1.0 where we started loading everything listed in FileList property of the module manifest.
7.0.x -- LTS
The regression was not fixed here.
The suggested text for 6.2.x and 7.0.x is:
[!NOTE] All the DLL files listed in FileList property of the module manifest will be attempted to load. If a native DLL is in the file list, it will fail to load in the process and the error is ignored. All managed DLLs will be loaded in the process.
7.1.0.preview.5 +
The regression was fixed and we do not load assemblies listed in the FileList property. PowerShell/PowerShell#12968
Activity
sdwheeler commentedon Jun 26, 2019
Update about_Modules and release notes.
sdwheeler commentedon Nov 18, 2019
Steve Lee (@SteveL-MSFT) We need a more complete description that we can add to the appropriate docs. Also, is there plans to address any of this in PSv7?
sdwheeler commentedon Nov 22, 2019
Rain Sallow (/u/ta11ow) (@vexx32) Is this something you could help us document?
vexx32 commentedon Nov 22, 2019
😁 I can do my best, but I'm fairly sure there'll be parts I don't know well enough. I'm not really sure why the behaviour was changed to begin with, among other things.
Perhaps Dongbo Wang (@daxian-dbw) or Paul Higinbotham (@PaulHigin) might be more familiar with the rationale and the changes themselves.
If they aren't able to help out here for whatever reason I'm sure I can chat to a few other folx who know the background info better and help y'all put something together as best I can! 😊
sdwheeler commentedon Dec 12, 2019
Dongbo Wang (@daxian-dbw) Can you help with core information?
joeyaiello commentedon Dec 12, 2019
Subsequently, we need to also document PowerShell/PowerShell#11032 as native DLL resolution has also changed.
6 remaining items
joeyaiello commentedon Jan 22, 2020
The question we haven't answered is whether this has been fixed in 7.0.
Is this still the behavior?
adityapatwardhan commentedon May 27, 2020
I can confirm that the behavior for
7.0.1is to load the managed assemblies in the file list.sdwheeler commentedon May 27, 2020
Aditya Patwardhan (@adityapatwardhan) What I need is a full description of the load behavior so that I can update the docs to reflect the new behavior.
adityapatwardhan commentedon May 28, 2020
I have opened a new issue: PowerShell/PowerShell#12821
That issue needs committee review. If the issue is going to be fixed, then we do not need to change the docs, if issue is not fixed we need to update the docs.
Update would be something like, probably a note.
[!NOTE] All the DLL files listed in FileList property of the module manifest will be attempted to load. If a native DLL is in the file list, it will fail to load in the process and the error is ignored. All managed DLLs will be loaded in the process.
sdwheeler commentedon Jun 10, 2020
PowerShell/PowerShell#12821 (comment)
@PowerShell/powershell-committee reviewed this, we agreed that the desire is to have:
adityapatwardhan commentedon Jun 16, 2020
PR opened to change the behavior back to not loaded assemblies listed in
FileListPowerShell/PowerShell#12968adityapatwardhan commentedon Aug 25, 2020
Here is the assembly load behavior by version:
6.2.x -- Soon to be EOL
We introduced a regression from 6.1.0 where we started loading everything listed in FileList property of the module manifest.
7.0.x -- LTS
The regression was not fixed here.
The suggested text for 6.2.x and 7.0.x is:
[!NOTE] All the DLL files listed in FileList property of the module manifest will be attempted to load. If a native DLL is in the file list, it will fail to load in the process and the error is ignored. All managed DLLs will be loaded in the process.
7.1.0.preview.5 +
The regression was fixed and we do not load assemblies listed in the FileList property. PowerShell/PowerShell#12968
Dongbo Wang (@daxian-dbw) Steve Lee (@SteveL-MSFT) - So the current state is we have no regression between 6.1.0 -> 7.1.0. But there is a change in behavior betweem 7.0.0 -> 7.1.0.
Should we consider PowerShell/PowerShell#12968 for back porting to 7.0.x?
adityapatwardhan commentedon Aug 25, 2020
Sean Wheeler (@sdwheeler) Chase Wilson (@chasewilson) Do you have sufficient information for the doc update?
Fixes #4249 - document FileList property behavior (#6834)