Using the following site I was able to add custom properties to assembly references in a C# project: https://lehmamic.wordpress.com/2013/07/10/extending-cs-file-properties-in-a-vspackage/.
This blog page also explains how extended properties on file items can be saved in the csproj file. However, I would like to save changes made to custom properties on references instead of files. How can I retrieve the 'IVsBuildPropertyStorage' for a particular 'VSLangProj.Reference' instance?
VSLangProj.Reference reference = ...;
IVsBuildPropertyStorage buildPropertyStorage = ?????
buildPropertyStorage.SetItemAttribute(....);