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/SystemFileNodeBuilder.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/SystemFileNodeBuilder.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs index 5444722bc4..8924839943 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/SystemFileNodeBuilder.cs @@ -151,10 +151,7 @@ namespace MonoDevelop.Ide.Gui.Pads.ProjectPad Project project = node.GetParentDataItem (typeof(Project), true) as Project; SystemFile file = (SystemFile) node.DataItem; - if (project.IsCompileable (file.Path)) - project.AddFile (file.Path, BuildAction.Compile); - else - project.AddFile (file.Path, BuildAction.None); + project.AddFile (file.Path); projects.Add (project); } IdeApp.ProjectOperations.Save (projects); |