Пример #1
0
        public static string buildConfigurationCS(CorelVersionInfo corelVersion)
        {
            StringBuilder sr = new StringBuilder();

            sr.AppendFormat("<PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == '{0} Debug|AnyCPU'\">", corelVersion.CorelAbreviation);
            sr.Append("<DebugSymbols>true</DebugSymbols>");
            sr.Append("<DebugType>full</DebugType>");
            sr.Append("<Optimize>false</Optimize>");
            sr.Append("<OutputPath>bin\\Debug\\</OutputPath>");
            sr.AppendFormat("<DefineConstants>DEBUG;TRACE;{0}</DefineConstants>", corelVersion.CorelDebugConst);
            sr.Append("<ErrorReport>prompt</ErrorReport>");
            sr.Append("<WarningLevel>4</WarningLevel>");
            sr.Append("</PropertyGroup>");
            sr.AppendFormat("<PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == '{0} Release|AnyCPU'\">", corelVersion.CorelAbreviation);
            sr.Append("<DebugType>none</DebugType>");
            sr.Append("<Optimize>true</Optimize>");
            sr.Append("<OutputPath>bin\\Release\\$(CurrentCorelAbs)\\</OutputPath>");
            sr.Append("<OutDir>bin\\Release\\$(CurrentCorelAbs)\\$(SolutionName)</OutDir>");
            sr.AppendFormat("<DefineConstants>TRACE;{0}</DefineConstants>", corelVersion.CorelDebugConst);
            sr.Append("<ErrorReport>prompt</ErrorReport>");
            sr.Append("<WarningLevel>4</WarningLevel>");
            sr.Append("</PropertyGroup>");

            return(sr.ToString());
        }
Пример #2
0
        public static string buildConfigurationVB(CorelVersionInfo corelVersion)
        {
            StringBuilder sr = new StringBuilder();

            sr.AppendFormat("<PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == '{0} Debug|AnyCPU'\">", corelVersion.CorelAbreviation);
            sr.Append("<DebugSymbols>true</DebugSymbols>");
            sr.Append("<DebugType>full</DebugType>");
            sr.Append("<DefineDebug>true</DefineDebug>");
            sr.Append("<DefineTrace>true</DefineTrace>");
            sr.Append("<OutputPath>bin\\Debug\\</OutputPath>");
            sr.Append("<OutDir>bin\\Debug\\</OutDir>");
            sr.Append("<DocumentationFile></DocumentationFile>");
            sr.Append("<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>");
            sr.AppendFormat("<DefineConstants>DEBUG,{0}</DefineConstants>", corelVersion.CorelDebugConst);
            sr.Append("</PropertyGroup>");
            sr.AppendFormat("<PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == '{0} Release|AnyCPU'\">", corelVersion.CorelAbreviation);
            sr.Append("<DebugType>none</DebugType>");
            sr.Append("<DefineDebug>false</DefineDebug>");
            sr.Append("<DefineTrace>true</DefineTrace>");
            sr.Append("<Optimize>true</Optimize>");
            sr.Append("<OutputPath>bin\\Release\\$(CurrentCorelAbs)\\</OutputPath>");
            sr.Append("<OutDir>bin\\Release\\$(CurrentCorelAbs)\\$(SolutionName)</OutDir>");
            sr.Append("<DocumentationFile></DocumentationFile>");
            sr.Append("<NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>");
            sr.AppendFormat("<DefineConstants>{0}</DefineConstants>", corelVersion.CorelDebugConst);
            sr.Append("</PropertyGroup>");

            return(sr.ToString());
        }
Пример #3
0
 public TargetsCreator()
 {
     versions = new CorelVersionInfo[CorelVersionInfo.MaxVersion - CorelVersionInfo.MinVersion];
     for (int i = 0; i < versions.Length; i++)
     {
         versions[i] = new CorelVersionInfo(i + CorelVersionInfo.MinVersion);
     }
 }