I'm working on some big software using Visual Studio 2010. My computer has also installment of Visual Studio 2017. Somehow I can use some C# syntax that is properly compiled on my computer (in VS 2010) and is not compiled on other computers (not having VS 2017). I guess it has something to do with installed Net Framework version. Nobody is allowed to update their Net Framework versions, so is there any way to limit it on my computer? I still want to be allowed to use VS 2017 to develop but I want to be able to compile code with limited features like others.
I'd guess you maybe need to change the c# Language version (rather than the .Net Framework target version). I don't have vs 2010 so can't check this, but try following steps here (this is for vs2013, hopefully 2010 is similar):
https://www.codeproject.com/Tips/865579/How-to-change-targeted-Csharp-version-in-Visual-St
Apparently 2010 should have a default version of 4 - perhaps it allows you to go higher if you have later compilers installed.