Publishing/Building project with dependencies based on target .NET version

I have a project that requires an external library file, which I have different versions of, for different .NET versions. How can I tell Visual Studio to build my project with the right file?
Was this page helpful?