Yes, you can do this by modifying the project file.
Open the csproj file in a text editor and find the line in the project file that describes the dependency that you want to conditionally load, and make sure it looks like this:
<Reference Include="LinqBridge" Condition="$(TargetFrameworkVersion)=='v2.0'"> <HintPath>..\..\..\DevSupport\Lib\LinqBridge\LinqBridge.dll</HintPath> <Private>True</Private> </Reference>
source share