Bug 57603 - VS2017 setting wrong value for TLS settings?
Summary: VS2017 setting wrong value for TLS settings?
Alias: None
Product: Visual Studio Extensions
Classification: Xamarin
Component: General ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2017-06-19 20:17 UTC by Philipp Sumi
Modified: 2017-06-20 21:10 UTC (History)
7 users (show)

Is this bug a regression?: ---
Last known good build:

VS Designer (39.08 KB, image/png)
2017-06-20 09:12 UTC, Philipp Sumi
Changes in the project file (26.13 KB, image/png)
2017-06-20 09:12 UTC, Philipp Sumi

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Philipp Sumi 2017-06-19 20:17:07 UTC
I understand that support for TLS 1.2+ is the latest and greatest in Android. However, I noticed that when I select "Native TLS 1.2+" in VS 2017's project properties (Advanced options, where we have HttpClient and SSL/TLS implementations), I end up with the following value in my csproj:


I quickly googled and stumbled over this one, too:
legacy: Use the historical managed SSL implementation for network interaction. This does NOT support TLS 1.2.

That's seems to be contradictory. Is this a naming / description issue, VS setting the wrong value, or a misunderstanding from my side?
Comment 1 Adam Hartley [MSFT] 2017-06-20 08:43:55 UTC
Hi Philipp,

I was unable to reproduce this issue myself. I changed the SSL/TLS implementation setting between "Managed TLS 1.1" and "Native TLS 1.2+", then saved the file, and each time the correct value was updated in the .csproj

Could you provide us with your version info? Also, are there any particular steps you are taking that consistently reproduce this issue?
Comment 2 Philipp Sumi 2017-06-20 09:11:49 UTC
Hi Adam

Hmm, I just switched the property in VS from Default to TLS 1.2 and then I see the change in the file. I'll attach two screenshots (VS designer, and a DIFF in SourceTree).

Below is my VS info:

Microsoft Visual Studio Enterprise 2017 
Version 15.2 (26430.12) Release
Microsoft .NET Framework
Version 4.7.02046

Installed Version: Enterprise

Visual Basic 2017   00369-60000-00001-AA103
Microsoft Visual Basic 2017

Visual C# 2017   00369-60000-00001-AA103
Microsoft Visual C# 2017

Visual C++ 2017   00369-60000-00001-AA103
Microsoft Visual C++ 2017

Visual F# 4.1   00369-60000-00001-AA103
Microsoft Visual F# 4.1

ASP.NET and Web Tools 2017   15.0.30503.0
ASP.NET and Web Tools 2017

ASP.NET Web Frameworks and Tools 2017   5.2.50303.0
For additional information, visit https://www.asp.net/

Azure App Service Tools v3.0.0   15.0.30209.0
Azure App Service Tools v3.0.0

Azure Data Lake Node   1.0
This package contains the Data Lake integration nodes for Server Explorer.

Azure Data Lake Tools for Visual Studio   2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio

Common Azure Tools   1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

Fabric.DiagnosticEvents   1.0
Fabric Diagnostic Events

GarbageCollectBeforeBuildPackage Extension   1.0
GarbageCollectBeforeBuildPackage Visual Studio Extension Detailed Info

JavaScript Language Service   2.0
JavaScript Language Service

JavaScript Project System   2.0
JavaScript Project System

JavaScript UWP Project System   2.0
JavaScript UWP Project System

JetBrains ReSharper Ultimate 2017.1.1    Build 108.0.20170407.122957
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.

KofePackagePackage Extension   1.0
KofePackagePackage Visual Studio Extension Detailed Info

Merq   1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.

Microsoft Azure Hive Query Language Service   2.2.5000.0
Language service for Hive query

Microsoft Azure Tools   2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1

Microsoft MI-Based Debugger   1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual Studio VC Package   1.0
Microsoft Visual Studio VC Package

Mono Debugging for Visual Studio   Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.

Node.js Tools   1.3.50417.1
Adds support for developing and debugging Node.js apps in Visual Studio

NuGet Package Manager   4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

Redgate ReadyRoll
Extend DevOps processes to your SQL Server databases and safely automate database deployments.
Visit https://www.red-gate.com/readyroll for more information.

Copyright (C) 2011 Red Gate Software Ltd. All rights reserved.
This software contains components from Component Owl.
SQL Server is a registered trademark of Microsoft Corporation. 
Visual Studio is a registered trademark of Microsoft Corporation. 

ReadyRoll contains code from the following open source software:

NuGet https://www.nuget.org/
SQL LocalDB Wrapper https://github.com/martincostello/sqllocaldb
Autofac https://autofac.org/
Json.NET https://json.net/
MahApps.Metro http://mahapps.com/
SemVer https://github.com/maxhauser/semver
Log4Net http://logging.apache.org/log4net/
Extended WPF Toolkit https://wpftoolkit.codeplex.com/
Code InfoBox VSX http://www.codeproject.com/Articles/55196/Code-InfoBox-Visual-Studio-Extension-VSX
OctoPack https://github.com/OctopusDeploy/OctoPack
SQLite https://sqlite.org/

This product contains icons from http://www.visualpharm.com distributed under a free backlink license.

For license details or other notices relating to the above software, please see NOTICE.TXT and EULA.rtf in the ReadyRoll application folder.

Redgate SQL Prompt
Write, format, and refactor SQL effortlessly

ResXManager   1.1.424.0
Manage localization of all ResX-Based resources in one place. Shows all resources of a solution and let's you edit the strings and their localizations in a well-arranged data grid.

SQL Server Data Tools   15.1.61702.140
Microsoft SQL Server Data Tools

ToolWindowHostedEditor   1.0
Hosting json editor into a tool window

TypeScript tools for Visual Studio

Visual Studio Tools for Apache Cordova   15.113.6201.1
Visual Studio Tools for Apache Cordova

Visual Studio Tools for Universal Windows Apps   15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.

Xamarin (1be4f0c)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.

Xamarin.Android SDK (9dbc4c5)
Xamarin.Android Reference Assemblies and MSBuild support.

Xamarin.iOS and Xamarin.Mac SDK (4cffddf)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Comment 3 Philipp Sumi 2017-06-20 09:12:23 UTC
Created attachment 22990 [details]
VS Designer
Comment 4 Philipp Sumi 2017-06-20 09:12:56 UTC
Created attachment 22991 [details]
Changes in the project file
Comment 5 Rui Marinho 2017-06-20 19:18:13 UTC
Moving to VS
Comment 6 Pierce Boggan [MSFT] 2017-06-20 21:10:03 UTC
Thanks for taking the time to file this issue @Philipp!

Using the latest Visual Studio 15.3 builds, I am unable to reproduce this issue, as shown in the screencast below:

Environment Information: https://gist.github.com/pierceboggan/f1ffd9e92b04565eb494d4138e1a034a

Marking as RESOLVED-FIXED. @Philipp, if you are still hitting this issue with the 15.3 builds or above, please don't hesitate to reopen this ticket. Thanks again!