protected CompilableProject(ICSharpCode.SharpDevelop.Internal.Templates.ProjectCreateInformation information)
            : base(information)
        {
            this.OutputType    = OutputType.Exe;
            this.RootNamespace = information.RootNamespace;
            this.AssemblyName  = information.ProjectName;

            ClientProfileTargetFramework clientProfile = information.TargetFramework as ClientProfileTargetFramework;

            if (clientProfile != null)
            {
                SetProperty(null, null, "TargetFrameworkVersion", clientProfile.FullFramework.Name, PropertyStorageLocations.Base, true);
                SetProperty(null, null, "TargetFrameworkProfile", "Client", PropertyStorageLocations.Base, true);
            }
            else if (information.TargetFramework != null)
            {
                SetProperty(null, null, "TargetFrameworkVersion", information.TargetFramework.Name, PropertyStorageLocations.Base, true);
            }

            SetProperty("Debug", null, "OutputPath", @"bin\Debug\",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "OutputPath", @"bin\Release\",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            InvalidateConfigurationPlatformNames();

            SetProperty("Debug", null, "DebugSymbols", "True",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "DebugSymbols", "False",
                        PropertyStorageLocations.ConfigurationSpecific, true);

            SetProperty("Debug", null, "DebugType", "Full",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "DebugType", "None",
                        PropertyStorageLocations.ConfigurationSpecific, true);

            SetProperty("Debug", null, "Optimize", "False",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "Optimize", "True",
                        PropertyStorageLocations.ConfigurationSpecific, true);
        }
예제 #2
0
        protected override void Create(ICSharpCode.SharpDevelop.Internal.Templates.ProjectCreateInformation information)
        {
            base.Create(information);

            this.OutputType    = OutputType.Exe;
            this.RootNamespace = information.RootNamespace;
            this.AssemblyName  = information.ProjectName;

            SetProperty("Debug", null, "OutputPath", @"bin\Debug\",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "OutputPath", @"bin\Release\",
                        PropertyStorageLocations.ConfigurationSpecific, true);

            SetProperty("Debug", null, "DebugSymbols", "True",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "DebugSymbols", "False",
                        PropertyStorageLocations.ConfigurationSpecific, true);

            SetProperty("Debug", null, "DebugType", "Full",
                        PropertyStorageLocations.ConfigurationSpecific, true);
            SetProperty("Release", null, "DebugType", "None",
                        PropertyStorageLocations.ConfigurationSpecific, true);
        }
예제 #3
0
 public IProject CreateProject(ICSharpCode.SharpDevelop.Internal.Templates.ProjectCreateInformation info)
 {
     return(new FSharpProject(info));
 }