Hi,
I am working on a extension setting debug properties for C++ projects. After update to VS 2019 version 16.6 methods IVCRulePropertyStorage.GetUnevaluatedPropertyValue() and IVCRulePropertyStorage.SetPropertyValue() are throwing exception
with message "Error HRESULT E_FAIL has been returned from a call to a COM component.", on SOME projects (on other it still works).
They were working fine with previous VS versions and I changed nothing in extension code or solution/projects I am testing it on since.
My code (based on article from msdn titled "Working with Visual C++ Project Properties" - can't paste link) is as follows:
DTE2 dte = GetService(typeof(DTE)) as DTE2;
Project project = dte.Solution.Projects.Item(1);
VCProject prj = (VCProject)project.Object;
VCConfiguration conf = prj.Configurations.Item("Debug|x64");
IVCRulePropertyStorage local = conf.Rules.Item("WindowsLocalDebugger") as IVCRulePropertyStorage;
string propertyValue = local.GetUnevaluatedPropertyValue("LocalDebuggerCommand");
I am not able to debug this COM object not having symbol files for VCProjectEngine.dll which is inside VS directories. Also I do not know any other method to get/set these properties. What do you suggest my next course of action should be?
Thanks,
Maciej