Quantcast
Viewing all articles
Browse latest Browse all 8065

Using .NET 4.5 features

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.


Viewing all articles
Browse latest Browse all 8065

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>