Image List - Missing PowerShellFormProject2.resources.ps1 File

Hello,

When adding an image list to a project and try to use it on a tree view I get this error;

PowerShellFormProject2.resources.ps1’ is not recognized as
[ERROR] the name of a cmdlet, function, script file, or operable program. Check the
[ERROR] spelling of the name, or if a path was included, verify that the path is
[ERROR] correct and try again.

Looks like the PowerShell Tools for VS is not working correctly, there is no file called “PowerShellFormProject2.resources.ps1” with the project files, I see this line of code in the designer file “$resources = . (Join-Path $PSScriptRoot ‘PowerShellFormProject2.resources.ps1’)”.

I have version 5.8.2

Has anyone else had this issue?

Thanks

This seems like a bug. If it’s not creating the resources file then the ImageList will not work. I’ve open an issue here: VS: Adding images to forms is not working · Issue #130 · ironmansoftware/issues · GitHub

Thanks Adam.
If you require anything please let me know.

1 Like

Hello,

Any update on a fix for this issue?

Thanks

Hey @karl_009,

Still working through this one. I can reproduce this but still trying to resolve it.

This has been resolved in 5.8.5.

Hi Adam,

I have downloaded the new version and tested, the problem is still present.

What do you suggest.

Thanks

Can you let me know if you are using Visual Studio 2019 or 2017?

Hi Adam,

Am running 2017, version 15.9.25.

Thanks

Ok. Thank you. Let me verify this in 2017.