on 2015 Feb 27 7:48 AM
Hi,
is there a way to use the .NET 4.5 framework with PB.NET (12.5 or 12.6)?
My script:
System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12!
The system.dll in the references contains the Tls12 and it is also provided by autoscript.
But if I compile the app I get:
'System.Net.SecurityProtocolType' does not contain a definition for 'Tls12'
Tls12 is new in .NET 4.5. So I think that the compiler uses an older version of the framework.
What can I do?
Thanks.
Request clarification before answering.
Hi René;
FYI ... (for both PB Classic and PB.Net):
PB Version .Net Version Supported
======== =================
PB 12.x 3.5
PB 12.5.x 4.0
PB 12.6.x 4.5
Note1: Now saying that, a lower migrated PB version application will still have the old .Net assignments in it. So for example a PB 12.x built application migrated to PB 12.6 will have .Net 3.5 assembly references.
Note2: While PB 12.6.x is .Net 4.5 complaint, I am not sure how v4.5 aware it really is.
Regards ...Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chris.
For me this is a bug... I created a new solution in PB.NET 12.6 as Rene mentioned, and references pointed to .net 4.0. Also migrating from PB.NET 12.5 to PB.NET 12.6 doesn't make any change to the references as you state (I mentioned that in my previous post).
But, about your previous message, I can say that from PB.NET 12 to PB.NET 12.5 the Migration updates the .net Framework to v. 4.0!
Using 12.6 4011, 12.5.2 5703 and 12.1 7217 builds.
Andreas.
Hi Andreas;
1) Thank you for confirming the .Net migration in PB 12.5. I assume that you mean PB.Net vs PB Classic (where the old .Net references will still be there).
2) Yes, I concur ... PB 12.6 Classic or .Net should migrate your references to .Net 4.5. That certainly seems like a "bug" (issue) to me as well.
Like I said earlier .. I think PB 12.6 is .Net 4.5 compliant but not really 100% aware.
Have a great weekend!
Regards ... Chris
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.