We have two files that store common functions.
One is a psm1 file used by scheduled scripts and is stored as a module in the usual module location.
AIUI I cannot use that for functions I compile with PS Studio so I have a common ps1 file included in all my projects which contain the common functions used by my PS Studio projects.
Trouble is that most of the functions in these two files have the same name as they are doing exactly the same thing. In fact the code is exactly the same which is not ideal but I cannot see a way to have common functions accessed by both scheduled scripts and PS Studio utilities stored in the one file.
On my development computer I have the psm1 module stored locally and this confuses PS Studio. When hovering over a function in PS Studio it thinks that the function comes from the psm1 module.
Is there any way I can configure PS Studio to ignore a particular module stored locally on my machine? IOW ignore the module when caching?
Thanks
David
One is a psm1 file used by scheduled scripts and is stored as a module in the usual module location.
AIUI I cannot use that for functions I compile with PS Studio so I have a common ps1 file included in all my projects which contain the common functions used by my PS Studio projects.
Trouble is that most of the functions in these two files have the same name as they are doing exactly the same thing. In fact the code is exactly the same which is not ideal but I cannot see a way to have common functions accessed by both scheduled scripts and PS Studio utilities stored in the one file.
On my development computer I have the psm1 module stored locally and this confuses PS Studio. When hovering over a function in PS Studio it thinks that the function comes from the psm1 module.
Is there any way I can configure PS Studio to ignore a particular module stored locally on my machine? IOW ignore the module when caching?
Thanks
David
Statistics: Posted by Lembasts — Thu Mar 14, 2024 3:11 pm