C
C#2y ago
Mohammed85

❔ ✅ How to update your C# version from V7.4 to 11.0

i have tired for a hour
4 Replies
Thinker
Thinker2y ago
Go into your .csproj file and add <LangVersion>11</LangVersion> to the topmost PropertyGroup Although judging by your language version being 7.4, you're probably using Framework, in which case you should update .NET 7.
sibber
sibber2y ago
you can use a higher c# version than your target runtime officially supports, but some features will not work so generally you upgrade your target runtime
Angius
Angius2y ago
That's a big jump in version, spanning a large change in the framework as well It's likely you'd need to upgrade everything with Upgrade Assistant and some manual fixes
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity. Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server