New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolkit Doesn't Detect UnSupported C# Version or Doesn't work on C# 8 #376
Comments
Hello AathifMahir, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
@AathifMahir Are you saying Visual Studio should prevent you from installing the Toolkit if you're using an unsupported C# version? |
Nope, I was saying the opposite of that, I mean community toolkit should present a language barrier or output the issue after Initialization or installation if possible, seems like I wrote the issue in a complex way. Let me edit that Edit: Fixed and Updated the Issue |
@AathifMahir there's many community toolkits, so you need to be more specific. But I'm pretty sure you're talking about the MVVM package. I think you and Sergio may have been talking about this on Discord? There's supposed to be a specific analytic message which instructs the developer about this change, but appears to not be showing up here. |
I think I forgot to update the generated code in the cached args when I lowered the minimum language version to C# 8. I reckon removing the target-typed Should be an easy fix, will take a look in a bit 🙂 dotnet/CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservablePropertyGenerator.Execute.cs Lines 979 to 983 in 96517ea
|
Took care of it 👍 |
Is vanilla UWP still under support with the new 8.x.x versions of the Mvvm Toolkit? Even C#8 as minimum version would require manually bumping the LanguageVersion of the consuming project, which brings some risks that have to be managed relating to some of the C#8 features, since UWP is normally stuck on 7.3. |
Describe the bug
Community Toolkit MVVM Doesn't Support C# Version 8 and Does Only Work with C# Version 9 and Above at the time of writing, In this case there's no proper warning or error output that relates to Community Toolkit MVVM on Compilation
Regression
7.1.2
Reproducible in sample app?
Steps to reproduce
Expected behavior
Community Toolkit MVVM Should Have Language Barrier to Prevent the Dependency from Installing on C# version 8 since least version of C# that is supported by Community Toolkit MVVM is C# Version 9 at the time of writing or Community Toolkit MVVM Should Support C# version 8
Screenshots
Visual Studio Version
2022
Visual Studio Build Number
17.3
Nuget packages
Community Toolkit 8.0
Help us help you
Yes, but only if others can assist.
The text was updated successfully, but these errors were encountered: