© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
1 reply
Dongle

❔ Resolving the language version used for a project

How do I resolve the language version used for a project in an MSBuild target? For example, if the user has the .NET 7 SDK as latest and they specify
<LangVersion>latest</LangVersion>
<LangVersion>latest</LangVersion>
, it should return 11.0
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Use language version 9.0or greater
C#CC# / help
2y ago
✅ Need Advice: Choosing the Right .NET Version for Our Project
C#CC# / help
12mo ago
❔ A safe scripting language for a Discord bot
C#CC# / help
3y ago
So im a bit new to the C# Language but i have a project for drawing sth using drawline/drawellipse
C#CC# / help
2y ago