I have a few class libraries that I'm using in two of our in-house projects. One of the in-house projects targets the .NET 4.0 framework, while the other one targets .NET 2.0. I'm using LinqBridge to gain some of the niceties of the higher version .NETs in the 2.0 project.
In order to use the class libraries properly in both projects, I need to compile one version (using LinqBridge) to the .NET 2.0 Framework, and another version (using the standard System.Linq) for .NET 4.0.
I'd like to avoid doing this manually every time. I was hoping there was a way to specify what the current target framework is in the Build Events section, but it looks like there isn't a macro for that. I'm generally unfamiliar with manually editing build configurations. What's the right way to go about targeting two frameworks for a single project?