diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-05-13 22:58:22 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-05-13 22:58:22 +0400 |
commit | 07f2b803b899d45f4d8733f4c8ddafe774770386 (patch) | |
tree | 684044aac7dc7bbbe31681e166abbf91809490e5 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects | |
parent | 2d7dfa921b661cf32cba415610d191b83f89ea34 (diff) |
* MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:
* MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs:
* MonoDevelop.Core/MonoDevelop.Projects/DotNetAssemblyProject.cs:
* MonoDevelop.Core/MonoDevelop.Projects/ProjectCreateInformation.cs:
Added new GetDefaultTargetPlatform virtual to DotNetProject. It is
overriden in DotNetAssemblyProject to set the default configuration
for exes (x86).
svn path=/trunk/monodevelop/; revision=157315
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs index dd7cba848b..709ff878b3 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/NewProjectDialog.cs @@ -441,31 +441,12 @@ namespace MonoDevelop.Ide.Projects { ProjectCreateInformation CreateProjectCreateInformation () { ProjectCreateInformation cinfo = new ProjectCreateInformation (); - cinfo.SolutionPath = SolutionLocation; + cinfo.SolutionPath = SolutionLocation; cinfo.ProjectBasePath = ProjectLocation; - cinfo.ProjectName = txt_name.Text; - cinfo.SolutionName = CreateSolutionDirectory ? txt_subdirectory.Text : txt_name.Text; - - // Guess a good default platform for the project - - if (parentFolder != null && parentFolder.ParentSolution != null) { - ItemConfiguration conf = parentFolder.ParentSolution.GetConfiguration (IdeApp.Workspace.ActiveConfiguration); - if (conf != null) - cinfo.DefaultPlatform = conf.Platform; - else { - string curName, curPlatform; - ItemConfiguration.ParseConfigurationId (IdeApp.Workspace.ActiveConfigurationId, out curName, out curPlatform); - foreach (ItemConfiguration ic in parentFolder.ParentSolution.Configurations) { - if (ic.Platform == curPlatform) { - cinfo.DefaultPlatform = curPlatform; - break; - } - if (ic.Name == curName) - cinfo.DefaultPlatform = ic.Platform; - } - } - } - + cinfo.ProjectName = txt_name.Text; + cinfo.SolutionName = CreateSolutionDirectory ? txt_subdirectory.Text : txt_name.Text; + cinfo.ParentFolder = parentFolder; + cinfo.ActiveConfiguration = IdeApp.Workspace.ActiveConfiguration; return cinfo; } |