If you select compatibility to V2 then it will use V2 assemblies and they need to be specified in the options.
I just found an anomaly in PSS 141. If I create and run a simple form with V5/64 and look at the code it loads the Net 4.0 assemblies. If I then set the PSF to run V2/64 it loads the Net 2.0 assemblies in the code. If I switch back to V5 the code continues to load only V2 assemblies.
David. Is this supposed to happen?
DataGridView
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Re: DataGridView
To allow the assemblies to follow the platform selections just clear the designer option for "Enable PowerShell V2 assembly compatibility". This will prevent the degradation to V2 assemblies when selecting newer platforms.
It does appear that the workflow for the build has a bug in that it chooses the current platform and inserts the newer assemblies even when that option is selected and only forces V2 assemblies if you switch to V2 and back. I don' think this was the intention.
It does appear that the workflow for the build has a bug in that it chooses the current platform and inserts the newer assemblies even when that option is selected and only forces V2 assemblies if you switch to V2 and back. I don' think this was the intention.
Re: DataGridView
There is a compatibility mode that you can disable (Options->Designer->Enable V2 assembly compatibility):
Without the option checked, it will use the .NET 4.0 versions of the assemblies.
Without the option checked, it will use the .NET 4.0 versions of the assemblies.
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: DataGridView
Now that I have toggled that setting on an d off it is correctly creating forms with 2.0 assemblies when set and 4.0 when not set. Originally it was set and a bew form would still use 4.0 until I changed the platform to PS v2 and back.
Strange?!?
The 141 update trashed PSS and forced me to uninstall and re-install it to get anything outside of the editor to work. I didn't manually clean up the residual files and registry entries so something my have been broke.
Strange?!?
The 141 update trashed PSS and forced me to uninstall and re-install it to get anything outside of the editor to work. I didn't manually clean up the residual files and registry entries so something my have been broke.