how to use c# 7

Lars Woetmann Pedersen's Avatar

Lars Woetmann Pedersen

06 Dec, 2018 12:54 PM

When appveyor try to build the branch displaytest on this project: this error is thrown:
  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.
the build works locally.

what could the problem be?

  1. Support Staff 1 Posted by Owen McDonnell on 06 Dec, 2018 06:28 PM

    Owen McDonnell's Avatar

    Can you try what is recommended in this article.

    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.

  2. 2 Posted by Lars Woetmann P... on 07 Dec, 2018 06:58 AM

    Lars Woetmann Pedersen's Avatar

    thank you, i found a configuration specifying c# 6

  3. Owen McDonnell closed this discussion on 07 Dec, 2018 04:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac