UWP and azure-pipelines: Error CS1617: Invalid option '10' for /langversion

Viewed 769

I have an UWP app and changed <LangVersion>10</LangVersion> inside .csproj to value 10. Everything works just fine (to my surprise).

But when I tried to build the app inside azure-pipelines it throws this error:

##[error]CSC(0,0): Error CS1617: Invalid option '10' for /langversion. Use '/langversion:?' to list supported values.

What is the last supported version of C# to be used in UWP app? How can I even test the /langversion:? command? (I really don't know where to put it). Why does it works perfectly fine on my local machine, but not inside azure-pipelines?

Target version: 19041, Minimal version: 17763

0 Answers
Related