Select to view content in your preferred language

Does Runtime support C# 6 language features?

780
2
Jump to solution
11-20-2017 06:09 AM
deleted-user-Ohz6rwd1kavx
Deactivated User

Hi there. I saw some activity on the Runtime samples GitHub repo about Runtime possibly not supporting C# 6 language features. What is the official word on this? I'd be interested to learn more about official support for this in 10.2.7, 100.0.0 and 100.1.0.

Thanks,

-Cory

0 Kudos
1 Solution

Accepted Solutions
MichaelBranscomb
Esri Frequent Contributor

Hi,

Yes, there is no problem using later C# features. The change you saw in the samples repo is just house-keeping: enforcing usage of C# 5 while we still support Visual Studio 2012 as our minimum for ArcGIS Runtime SDK for .NET. Although it is possible to update the compiler in VS2012 on a per-project basis, we need to ensure that the samples just work for anyone still running VS2012 (Update 4). With the team here all running VS2017 (for our internal codebase) we were starting to see some C# 6 and potentially even 7.0/7.1 usage creep into our sample PRs.

It's really only for the upcoming release in late 2017 / early 2018. After that (for a future release later in 2018) we will review our system requirements again for the SDK and perhaps look at increasing the minimums to e.g. VS2015, .NET 4.6.1, and C# 6 . At that point we would increase the minimum language version in the samples repo as necessary.

Cheers

Mike

View solution in original post

2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

Yes, there is no problem using later C# features. The change you saw in the samples repo is just house-keeping: enforcing usage of C# 5 while we still support Visual Studio 2012 as our minimum for ArcGIS Runtime SDK for .NET. Although it is possible to update the compiler in VS2012 on a per-project basis, we need to ensure that the samples just work for anyone still running VS2012 (Update 4). With the team here all running VS2017 (for our internal codebase) we were starting to see some C# 6 and potentially even 7.0/7.1 usage creep into our sample PRs.

It's really only for the upcoming release in late 2017 / early 2018. After that (for a future release later in 2018) we will review our system requirements again for the SDK and perhaps look at increasing the minimums to e.g. VS2015, .NET 4.6.1, and C# 6 . At that point we would increase the minimum language version in the samples repo as necessary.

Cheers

Mike

deleted-user-Ohz6rwd1kavx
Deactivated User

Thank you.

0 Kudos