So I have a project inside a huge solution.
My project is .NET 3.5 and the rest of the solution is 4.7.1. My goal is that if someone else tries to update my project from 3.5 it will fail to compile.
tl;dr
- How do I read the .net version of a project?
- How do I conditionally fail a compilation?