Cannot access a disposed object. Object name: ‘Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCConfigurationShim’.

Mekala Meghana 20 Reputation points
2024-03-13T08:57:31.0266667+00:00

I am trying to add new item to project Add->New Item. In this vs event VS.Events.ProjectItemsEvents.AfterAddProjectItems I am trying to set Custom Build Properties to newly added item. In this scenario I am getting the below exception as shown.Cannot access a disposed object. Object name: ‘Microsoft.VisualStudio.Project.VisualC.VCProjectEngine.VCConfigurationShim’.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,198 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
227 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.