ironmansoftware / powershell-pro-tools

Scripting, automation, and development tools for professionals working with PowerShell.
MIT License
46 stars 1 forks source link

The property '<property>' cannot be found on this object. #48

Open shaun-borlinghaus opened 2 years ago

shaun-borlinghaus commented 2 years ago

Microsoft Visual Studio Enterprise 2022 (64-bit) - Current Version 17.1.3 PowerShell Tools for Visual Studio 2022 Version 2022.7.0

If i create a new form (I tried multiple new forms) and just add a simple label, when i try and change any properties i get the following error below. I tried a simple $label1.text = "test" or $label1.visible = $false and this happens no matter what:

[ERROR] The property 'text' cannot be found on this object. Verify that the property [ERROR] exists and can be set. [ERROR] At C:\Users\Path\Visual Studio\Project - [ERROR] Active\SB-Tools\FunStuff.ps1:1 char:1 [ERROR] + $label1.text = "test" [ERROR] + ~~~~~~~ [ERROR] + CategoryInfo : InvalidOperation: (:) [], RuntimeException [ERROR] + FullyQualifiedErrorId : PropertyNotFound

shaun-borlinghaus commented 2 years ago

To add, this does not affect any forms i already have added to the project. I can update label text on them without issue.

DataTraveler1 commented 2 years ago

@adamdriscoll - Could you please add the appropriate tags to this issue?