Skip to content

CS1617 Invalid option 'preview' for /langversion. Use '/langversion:?' to list supported values #23

Description

@andydis

Error when compiling:-
CS1617 Invalid option 'preview' for /langversion. Use '/langversion:?' to list supported values

windows 10 1903
Visual studio 2017

Tried:
installing all the .net SDK's / developer packs
changing the projects target framework to 4.0 , 4.5 , 4.6.1 , 4.6.2 all same error

1>------ Build started: Project: SharpLocker, Configuration: Debug Any CPU ------
1>CSC : error CS1617: Invalid option 'preview' for /langversion. Use '/langversion:?' to list supported values.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions