Remove reference to Assembly

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
PsCustomObject-2
Posts: 16
Last visit: Tue Oct 30, 2018 8:04 am

Remove reference to Assembly

Post by PsCustomObject-2 »

Hello,

as per subject I would need to remove reference to an assembly which has been imported by mistake. In a nutshell I have a GUI Form project and dragged a Chart control by mistake on my form, removed it and all reference to the various fucntions but yet when running the project I gut:

Code: Select all

WARNING: "System.Windows.Forms.DataVisualization" Assembly is not compatible with .NET 2.0 and Windows PowerShell V2.
Not a big deal but I would like to get rid of it but cannot find any reference to the assembly in the editor, when exporting the code to clipboard I can see it but would like to remove it for good in the editor.

How would I do that?

Thanks in advance!
User avatar
mxtrinidad
Posts: 399
Last visit: Tue May 16, 2023 6:52 am

Re: Remove reference to Assembly

Post by mxtrinidad »

I don't seem to replicate the issue on our end. Meaning, I create an empty form, dragged a button, graph control and then save/run the form.
Finally, I removed the graph control including the Helper function, and save/run the form. Everything is working and no failed messages are shown in the console panel.

Please, what is the version of PowerShell Studio?
:)
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Remove reference to Assembly

Post by davidc »

This warning comes from the PowerShell V2 compatibility check. You can disable it in Options->Designer->Enable PowerShell V2 assembly compatibility:
Enable V2 compatibility.png
Enable V2 compatibility.png (25.02 KiB) Viewed 2118 times
David
SAPIEN Technologies, Inc.
User avatar
PsCustomObject-2
Posts: 16
Last visit: Tue Oct 30, 2018 8:04 am

Re: Remove reference to Assembly

Post by PsCustomObject-2 »

Ah that's where it is coming from... Many thanks David option was indeed enabled and unchecking it got rid of the warning.

Many thanks!
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.