소스 검색

Workaround 'Could not create SSL/TLS secure channel' issue due to TLS 1.1 being the default on earlier versions of .NET.

drieseng 4 년 전
부모
커밋
68a47f6890
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      build/build.proj

+ 4 - 0
build/build.proj

@@ -222,6 +222,10 @@
 			<Reference Include="System" />
 			<Code Type="Fragment" Language="cs">
 				<![CDATA[
+					// Workaround 'Could not create SSL/TLS secure channel' issue due to TLS 1.1 being
+					// the default on earlier versions of .NET
+					System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls12;
+					// Download file
 					new System.Net.WebClient().DownloadFile(Address, FileName);
 				]]>
 			</Code>