How to add new item type validation , when trying to add new item in solution explorer of visual studio experimental instance?

Mekala Meghana 20 Reputation points
2024-02-26T04:02:05.1866667+00:00

I am trying to add file type validation in "add-> new item" in solution explorer in visual studio experimental instance. If the selected item type is not valid, then it needs to display message box like invalid item type. Else it needs to add the selected item to the project. Currently by using this "VS.Events.ProjectItemsEvents.AfterAddProjectItems", it is adding the item before validating file type. Is there any visual studio event to call at the time of "add->new item" to validate? How to get the dialogue box of add-> new item programatically?

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.