Ronald
Ronald

Reputation: 61

There is no way to use C# version 9.0 in Universal Windows Platform because it is not net core but only .net?

I started messing around with uwp from the book Head First C# (3rd Edition), and now I am a bit fired up, because it is a good framework, is seems. I used it in the past, so I am a bit familiar with xaml. A tutorial used a C# version 9.0 trick that was neat. But, I could not do it in mine because the solution is an old version of C#. I spent hours trying, but couldn't figure out how to upgrade. Apparently because UWP is not Core and .net 5 is, that is why I can't do it. It seems the only way to get C# version 9.0 is with .net5. And that means, apparently, you cannot upgrade the UWP solution to C# 9.0. Is this confirmed, for this time in life (January 1, 2023) you cannot use C# 9.0 with UWP?

Upvotes: 0

Views: 421

Answers (1)

Roy Li - MSFT
Roy Li - MSFT

Reputation: 8666

Is this confirmed, for this time in life (January 1, 2023) you cannot use C# 9.0 with UWP?

C# 9 is supported only on .NET 5 and newer versions. This could be found here: C# language versioning. But .NET 5 and newer version does not support UWP officially. So you can't use C# 9 in UWP now.

Upvotes: 3

Related Questions