tag:help.appveyor.com,2012-11-13:/discussions/problems/18442-how-to-use-c-7AppVeyor: Discussion 2018-12-07T16:18:11Ztag:help.appveyor.com,2012-11-13:Comment/466269882018-12-06T12:54:59Z2018-12-06T12:55:02Zhow to use c# 7<div><p>When appveyor try to build the branch displaytest on this project: <a href="https://ci.appveyor.com/project/AKQA/oister">https://ci.appveyor.com/project/AKQA/oister</a> this error is thrown:<br>
error CS8059: Feature 'pattern matching' is not available in C# 6. Please use language version 7.0 or greater. the project file specify C# 7 and the appveyor file specify Visual Studio 2017.<br>
the build works locally.</p>
<p>what could the problem be?</p></div>Lars Woetmann Pedersentag:help.appveyor.com,2012-11-13:Comment/466269882018-12-06T18:28:37Z2018-12-06T18:28:37Zhow to use c# 7<div><p>Can you try what is recommended in <a href="https://blogs.msdn.microsoft.com/benjaminperkins/2017/03/23/how-to-enable-c-7-in-visual-studio-2017/">this article</a>.</p>
<p>Another oversight that has caused this a few times in the past is specifying C#7 but on only one configuration, which is not the same one being built on AppVeyor.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/466269882018-12-07T06:58:12Z2018-12-07T06:58:13Zhow to use c# 7<div><p>thank you, i found a configuration specifying c# 6</p></div>Lars Woetmann Pedersen