chronolinq
C# Version for development, build, and deployment
I'm having a little trouble understanding a couple things, but mainly:
What language version am able to use when writing code?I've got a solution with .NET 4.8 Framework assemblies, .NET Standard 2.0, .NET 6, and .NET 7 in co-existence. .NET 8 rolled out recently with C# 12 and for example, there are now collection expressions that I would like to use, but not sure how to safely ensure that I'm not breaking the build/deployment by doing so. Do I just need to install .NET 8 on the development machine, build server, and deployment server to ensure that everything works across the board or is there more to it? Is accessible C# features tied to .NET version of application? Or installed on machine?
31 replies