Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@novell.com>2010-05-13 22:58:22 +0400
committerLluis Sanchez <lluis@novell.com>2010-05-13 22:58:22 +0400
commit07f2b803b899d45f4d8733f4c8ddafe774770386 (patch)
tree684044aac7dc7bbbe31681e166abbf91809490e5 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects
parent2d7dfa921b661cf32cba415610d191b83f89ea34 (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.cs29
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;
}