In VS2017 RC, when you tried to use new tuple syntax, you received the following error:
CS8179 Predefined type 'System.ValueTuple`X' is not defined or imported
In order to use tuple syntax, you had to manually import ValueTuple nuget package into the project. Not a big deal, as it was pre-release version and I thought it will be changed in RTM so it will be enabled by default. Unfortunately in the final release version it is still the case and you have to download nuget package for every single project to use tuple syntax.
Is there a way to have tuple syntax enabled for every project by default?
for
loops, and another one to use multiplication. If the new Tuple syntax is actually part of the language, then it should be a first class citizen of the language, and not require external packages. – PokerValueTuple
is brand new and can't just be added to existing libraries – ParipinnateSystem.FormattableString
to mscorlib in .NET 4.6. msdn.microsoft.com/en-us/library/… – Gametophoredynamic
is a C# keyword, but if you want to use it you need to import a Reference of theMicrosoft.CSharp
dll... it is not present by default. – Fulford