I have four projects in my Visual Studio solution (everyone targeting .NET 3.5) - for my problem only these two are important:
This requires adding a .targets file to your project and setting it to be included in the project's includes section.
.targets
See my answer here for the procedure.