mono/monodevelop — pull request #288 by Therzok (2013-05-17 13:14:57+00:00)
Title: Bug 10698 - Extension change modifies build action.

Whenever we change extension, modify the file to have its BuildAction set to DefaultBuildAction based.

Old version: Create two files, First.cs and First.Second. First.Second has BuildAction set to None on creation, and on renaming to First.Second.cs the action doesn't modify, therefore either the user has to set it manually or make a new file.

New version: Create two files, Files.cs and First.Second. On changing the extension, if the new DefaultBuildAction is not Compile, a dialog comes up and asks if you're sure to rename. Proceeding or if the action is compile, it is set to the file.

The location of the setting of BuildAction to a file was chosen in RootWorkspace to be sure to cover all possible renaming, not just through the Rename in the Project Viewer.