Am seeing error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.Shell.Interop.IVsBuildPropertyStorage'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{E7355FDF-A118-48F5-9655-7EFD9D2DC352}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)) in below code:
IVsBuildPropertyStorage buildProps = (IVsBuildPropertyStorage)project where project is of type IVsHierarchy.
This is similar to code base as mentioned here: https://docs.microsoft.com/en-us/visualstudio/extensibility/adding-an-attribute-to-a-project-item. However we still see the error in Visual Studio 2017. The same code works file till Visual Studio 2015.
Any pointers would be helpful.
Vinita