Appcenter: Failing to build Xamarin forms app using C#9

Created on 11 Feb 2021  路  5Comments  路  Source: microsoft/appcenter

When building Xamarin forms app which consumes c#9 AppCenter fails build with this error

CSC : error CS1617: Invalid option '9.0' for /langversion. Use '/langversion:?' to list supported values.

But I can successful build locally on my PC or macOS

build feature request reviewed-DRI

Most helpful comment

Bump? How is it possible that Microsoft's own tools don't support their own language? Setting project version to latestmajor fails to compile on AppCenter with C# 9 features.

All 5 comments

C# 9 was released in November, it's now 5 months later and this is still not supported?

It looks like #86

Bump? How is it possible that Microsoft's own tools don't support their own language? Setting project version to latestmajor fails to compile on AppCenter with C# 9 features.

Any update? I still have the same issue.

I had to switch to Azure DevOps builds because of this issue.

Was this page helpful?
0 / 5 - 0 ratings