diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2008-11-06 23:24:23 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2008-11-06 23:24:23 +0300 |
commit | f4d791aed99e8c98de4948779a650ae5ade9ce22 (patch) | |
tree | 351b8ef0654b8836a11788e44989c126ca15cfeb /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs | |
parent | 4153f83ab1da14fba9fc7d48f9e62d4d3995f396 (diff) |
* main/src/core/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs:
Add API for automatically setting build action on new files.
* main/src/core/MonoDevelop.Projects/MonoDevelop.Projects/ProjectFile.cs:
Set default build action so it's never null.
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/RootWorkspace.cs:
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/ProjectOperations.cs:
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/IncludeFilesDialog.cs:
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs:
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs:
Use new default build action API.
* main/src/addins/AspNetAddIn/MonoDevelop.AspNet/AspNetAppProject.cs:
* main/src/addins/MonoDevelop.Moonlight/MonoDevelop.Moonlight/MoonlightProject.cs:
Use new API; move default build action code into
GetDefaultBuildAction override.
* main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Templates/SingleFileDescriptionTemplate.cs:
Use default build action when template does not have an explicit
build action set, instead of assuming BuildAction.Compile. Fixes Bug
427508 - adding a 'Empty HTML File' to web site is included in build
by default.
svn path=/trunk/monodevelop/; revision=118148
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs index 82678c38c1..5d6a466d24 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFolderNodeBuilder.cs @@ -224,12 +224,8 @@ namespace MonoDevelop.Ide.Gui.Pads.ProjectPad ITreeNavigator nav = node.Clone (); GetFiles (nav, filesToAdd); - foreach (SystemFile file in filesToAdd) { - if (project.IsCompileable (file.Path)) - project.AddFile (file.Path, BuildAction.Compile); - else - project.AddFile (file.Path, BuildAction.None); - } + foreach (SystemFile file in filesToAdd) + project.AddFile (file.Path); projects.Add (project); } |