.NET 4.7 project is failing to build

muhammadmuzzammil.cs's Avatar

muhammadmuzzammil.cs

22 Nov, 2017 07:36 AM

Hi,
I recently switched to .NET 4.7 framework from .NET 4.5.2 and after that my project is not building.
https://ci.appveyor.com/project/muhammadmuzzammil1998/swsh/build/job/sp5dv2qtovyn8wpb/messages

It says that there are syntax errors but they are not errors in .NET 4.7.
Errors are coming on "local function", a feature of C# 7, on line ~490.
https://github.com/SecureWindowsShell/SWSH/blob/unstable/SWSH/Program.cs#L490

Build worker image: Visual Studio 2017

How do I fix this?

  1. Support Staff 1 Posted by Feodor Fitsner on 22 Nov, 2017 05:37 PM

    Feodor Fitsner's Avatar

    In your appveyor.yml add the following to build on VS 2017 image:

    image: Visual Studio 2017
    
  2. 2 Posted by muhammadmuzzamm... on 23 Nov, 2017 10:33 AM

    muhammadmuzzammil.cs's Avatar

    THANK YOU!! :D

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? 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