I have some code that sets the "Name" property to change the extension to some file
ProjectItem pi = //...
/* snip */
pi.Name = "file.with_new_extension";
As soon as the assignation happens, the code pauses, because in the UI Visual Studio is asking confirmation:
"If you change a file name extension, the file may become unusable. Are you sure you want to change it?."
Is there any way to stop this confirmation to happen?