public string getFileName(string svnpath, string platform, string projectname, string vsversion) { string fileName = string.Empty; projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if ((platform.ToLower().Equals("windows") | platform.ToLower().Equals("base")) && vsversion.Equals("2005")) { fileName = projectfilePath + "\\Syncfusion." + projectname + vsversion + ".csproj"; //projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2005.sln"; } if ((platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) && vsversion.Equals("2008")) { fileName = projectfilePath + "\\Syncfusion." + projectname + "_2008.csproj"; //projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2008.sln"; } if (vsversion.Equals("2010") && !projectname.ToLower().Contains("dll.design")) { fileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; // projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2010.sln"; } if (!platform.ToLower().Equals("silverlight") && vsversion.Equals("2012") && !projectname.ToLower().Contains("dll.design")) { fileName = projectfilePath + "\\Syncfusion." + projectname + "_2012.csproj"; //projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2012.sln"; } if (!platform.ToLower().Equals("silverlight") && vsversion.Equals("2013") && !projectname.ToLower().Contains("dll.design")) { fileName = projectfilePath + "\\Syncfusion." + projectname + "_2013.csproj"; } if (!platform.ToLower().Equals("silverlight") && vsversion.Equals("2015") && !projectname.ToLower().Contains("dll.design")) { fileName = projectfilePath + "\\Syncfusion." + projectname + "_2015.csproj"; } return(fileName); }
/// <summary> /// Check the Project Reference, check the assembly name value is matched the spcified format and /// return boolean value to calling funtion /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isProjectReferenceEnable(string svnpath, string platform, string projectname, string VSversion) { // Local variables string projectfilePath = string.Empty; string projectFileName = string.Empty; bool isPresent = false; // set the project file location based on the platform projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (VSversion.Equals("2005") || VSversion.Equals("2008")) { if (platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_" + VSversion + ".csproj"; if (File.Exists(projectFileName)) { isPresent = getProjectReference(projectFileName); } } } // Set VS2010 and VS2012 project files, if platform is not equal to silverlight if (!platform.ToLower().Equals("silverlight")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_" + VSversion + ".csproj"; if (File.Exists(projectFileName) && !projectFileName.ToLower().Contains("wp8")) { isPresent = getProjectReference(projectFileName); } } // If platform is equal to silverlight, set project file name for SL 4 and SL 5 projects if (platform.ToLower().Equals("silverlight")) { // Checking silverlight 4 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectFileName)) { isPresent = getProjectReference(projectFileName); } if (!projectname.ToLower().Contains("design")) { // Checking silverlight 5 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; if (File.Exists(projectFileName)) { isPresent = getProjectReference(projectFileName); } } } return(isPresent); }
public string isProjectFileMismatch(string svnpath, string platform, string projectname, string VSVersion) { string ProjectFileMisMatchVersion = string.Empty; projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (VSVersion == "2010" && platform.ToLower().Equals("silverlight") || (projectname.Equals("OlapSilverlight.Base")) || (projectname.Equals("OlapSilverlight.BaseWrapper"))) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj")) { ProjectFileMisMatchVersion = "2010"; } if (!projectname.ToLower().Contains("design") && objLocation.isVSProjectPresent(projectfilePath, "2010", true)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj")) { ProjectFileMisMatchVersion = "2010"; } } } else if (((platform.ToLower().Equals("mvc") || platform.ToLower().Equals("ej.mvc")) && (VSVersion == "2010" || VSVersion == "2012" || VSVersion == "2015")) || (platform.ToLower().Equals("wpf") && (VSVersion != "2005")) || (platform.ToLower().Equals("wp8") && (VSVersion == "2012")) || (platform.ToLower().Equals("web") && (VSVersion != "2005")) || (platform.ToLower().Equals("ej.web") && (VSVersion == "2010" || VSVersion == "2012" || VSVersion == "2013" || VSVersion == "2015")) || (platform.ToLower().Equals("windows")) || (platform.ToLower().Equals("base")) || (platform.ToLower().Equals("universal") && (VSVersion == "2013")) || (platform.ToLower().Equals("wp81sl") && (VSVersion == "2013")) || (platform.ToLower().Equals("wp81winrt") && (VSVersion == "2013")) || (platform.ToLower().Equals("uwp") && (VSVersion == "2015"))) { if (projectname.ToLower().Contains("dll.design") && (platform.ToLower().Equals("wpf")) && (VSVersion == "2008")) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".sln")) { ProjectFileMisMatchVersion = VSVersion; } } else if (!projectname.ToLower().Contains("dll.design")) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".sln")) { ProjectFileMisMatchVersion = VSVersion; } } } else if (platform.ToLower().Equals("winrt") && (VSVersion == "2012" || VSVersion == "2013")) { if ((projectname.Contains("DirectXWrapper.WinRT")) || (projectname.Contains("ChartCPP.WinRT"))) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".vcxproj")) { ProjectFileMisMatchVersion = VSVersion; } } else { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".sln")) { ProjectFileMisMatchVersion = VSVersion; } } } return(ProjectFileMisMatchVersion); }
public bool isValidateXamlMismatch(string svnpath, string platform, string projectname) { projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (platform.ToLower().Equals("silverlight") && !projectname.ToLower().Contains("dll.design") && !projectname.ToLower().Contains("VisualStudio.Design") && !projectname.ToLower().Contains("Expression.Design")) { // Checking silverlight 4 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectFileName)) { string content = File.ReadAllText(projectFileName); Regex validateRegex = new Regex(@"<ValidateXaml>.*?</ValidateXaml>"); MatchCollection mc = validateRegex.Matches(content); if (mc.Count == 0) { return(true); } if (mc.Count > 0) { foreach (Match val in mc) { if (!val.ToString().ToLower().Contains("false")) { return(true); } } } } // Checking silverlight 5 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; if (File.Exists(projectFileName)) { string content = File.ReadAllText(projectFileName); Regex validateRegex = new Regex(@"<ValidateXaml>.*?</ValidateXaml>"); MatchCollection mc = validateRegex.Matches(content); if (mc.Count == 0) { return(true); } if (mc.Count > 0) { foreach (Match val in mc) { if (!val.ToString().ToLower().Contains("false")) { return(true); } } } } } return(false); }
public static bool IsAssemblyAttributesExists(string svnpath, string platform, string projectname, string format) { ProjectLocation objlocation = new ProjectLocation(); string projectfileLocation = string.Empty; bool isExists = true; projectfileLocation = objlocation.projectPath(svnpath, platform, projectname); if (File.Exists((projectfileLocation + "\\AssemblyInfo.cs"))) { isExists = searchAssemblyAttributes(projectfileLocation + "\\AssemblyInfo.cs", format); } else if (File.Exists(projectfileLocation + "\\Properties\\AssemblyInfo.cs")) { isExists = searchAssemblyAttributes(projectfileLocation + "\\Properties\\AssemblyInfo.cs", format); } return(isExists); }
public static bool isDelaysignExists(string svnpath, string platform, string projectname) { ProjectLocation objlocation = new ProjectLocation(); string projectfileLocation = string.Empty; bool isExists = true; projectfileLocation = objlocation.projectPath(svnpath, platform, projectname); if (!platform.ToLower().Equals("silverlight") || (platform.ToLower().Equals("silverlight") && !projectname.ToLower().Contains("dll.design"))) { if (File.Exists((projectfileLocation + "\\AssemblyInfo.cs"))) { isExists = searchDelaySign(projectfileLocation + "\\AssemblyInfo.cs"); } else if (File.Exists(projectfileLocation + "\\Properties\\AssemblyInfo.cs")) { isExists = searchDelaySign(projectfileLocation + "\\Properties\\AssemblyInfo.cs"); } } return(isExists); }
/// <summary> /// this function is check whether the Project name and Solution file name are in correct format /// it checks the file name based on th platform argument. /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isProjectNameMismatch(string svnpath, string platform, string projectname) { bool isVS2005 = false, isVS2008 = false, isVS2010 = false, isVS2012 = false, isVS2013 = false, isVS2015 = false; //string projectfilePath = string.Empty; //ProjectLocation objLocation = new ProjectLocation(); projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if ((platform.ToLower().Equals("windows") || platform.ToLower().Equals("base")) && objLocation.isVSProjectPresent(projectfilePath, "2005", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2005.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2005.sln")) { isVS2005 = true; } } if ((platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) && objLocation.isVSProjectPresent(projectfilePath, "2008", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2008.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2008.sln")) { isVS2008 = true; } } if (!platform.ToLower().Equals("silverlight")) { if (objLocation.isVSProjectPresent(projectfilePath, "2010", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2010.sln")) { isVS2010 = true; } } if (objLocation.isVSProjectPresent(projectfilePath, "2012", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2012.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2012.sln")) { isVS2012 = true; } } if (objLocation.isVSProjectPresent(projectfilePath, "2013", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2013.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2013.sln")) { isVS2013 = true; } } if (objLocation.isVSProjectPresent(projectfilePath, "2015", false)) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2015.csproj") || !File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2015.sln")) { isVS2015 = true; } } } if (platform.ToLower().Equals("silverlight")) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj")) { isVS2010 = true; } if (!projectname.ToLower().Contains("design")) { if (!File.Exists(projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj")) { isVS2010 = true; } } } if (isVS2005 || isVS2008 || isVS2010 || isVS2012 || isVS2013 || isVS2015) { return(true); } else { return(false); } }
/// <summary> /// Get the assembly name, check the assembly name value is matched the spcified format and /// return boolean value to calling funtion /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isAssmeblyNameMismatch(string svnpath, string platform, string projectname, string VSversion) { // Local variables string projectfilePath = string.Empty; string projectFileName = string.Empty; string assemblyName = string.Empty; //ProjectLocation objLocation = new ProjectLocation(); bool isMismatch = false; // set the project file location based on the platform projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (VSversion.Equals("2005") || VSversion.Equals("2008")) { if (platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_" + VSversion + ".csproj"; if (File.Exists(projectFileName)) { assemblyName = getAssemblyName(projectFileName); if (string.IsNullOrEmpty(assemblyName) || !assemblyName.ToLower().Equals("syncfusion." + projectname.ToLower())) { isMismatch = true; } } } } // Set VS2010 and VS2012 project files, if platform is not equal to silverlight if (!platform.ToLower().Equals("silverlight")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_" + VSversion + ".csproj"; if (File.Exists(projectFileName) && !projectFileName.ToLower().Contains("wp8")) { assemblyName = getAssemblyName(projectFileName); if (string.IsNullOrEmpty(assemblyName) || !assemblyName.ToLower().Equals("syncfusion." + projectname.ToLower())) { isMismatch = true; } } } // If platform is equal to silverlight, set project file name for SL 4 and SL 5 projects if (platform.ToLower().Equals("silverlight")) { // Checking silverlight 4 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectFileName)) { assemblyName = getAssemblyName(projectFileName); if (string.IsNullOrEmpty(assemblyName) || !assemblyName.ToLower().Equals("syncfusion." + projectname.ToLower())) { isMismatch = true; } } if (!projectname.ToLower().Contains("design")) { // Checking silverlight 5 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; if (File.Exists(projectFileName)) { assemblyName = getAssemblyName(projectFileName); if (string.IsNullOrEmpty(assemblyName) || !assemblyName.ToLower().Equals("syncfusion." + projectname.ToLower())) { isMismatch = true; } } } } return(isMismatch); }
/// <summary> /// Check the target framework version based on visual studio project /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isTargetFrameworkVersionMismatch(string svnpath, string platform, string projectname) { //bool isMismatch = false; //ProjectLocation objLocation = new ProjectLocation(); projectfilePath = objLocation.projectPath(svnpath, platform, projectname); //if (platform.ToLower().Equals("windows") || platform.ToLower().Equals("base")) //{ // projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2005.csproj"; // targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); // if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v2.0")) // { // isMismatch = true; // } //} if (platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2008.csproj"; if (File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v3.5")) { isMismatch = true; } } } if (!platform.ToLower().Equals("silverlight")) { projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.0")) { isMismatch = true; } } projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2012.csproj"; if (File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.5")) { isMismatch = true; } } projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2013.csproj"; if (File.Exists(projectFileName) && !projectFileName.ToLower().Contains("wp8")) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (platform.ToLower().Equals("universal")) { if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.6")) { isMismatch = true; } } else if (platform.ToLower().Equals("wp81sl") || platform.ToLower().Equals("wp81winrt")) { if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v8.1")) { isMismatch = true; } } else { if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.5.1")) { isMismatch = true; } } } projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2015.csproj"; if (File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.6")) { isMismatch = true; } } } if (platform.ToLower().Equals("silverlight") && !projectname.ToLower().Contains("dll.design")) { // Checking silverlight 4 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v4.0")) { isMismatch = true; } } // Checking silverlight 5 project file projectFileName = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; if (!projectname.ToLower().Contains("design") && File.Exists(projectFileName)) { targetFrameworkVersion = getTargetFrameworkVersion(projectFileName); if (string.IsNullOrEmpty(targetFrameworkVersion) || !targetFrameworkVersion.ToLower().Equals("v5.0")) { isMismatch = true; } } } return(isMismatch); }
/// <summary> /// This function is used to check the solution configuraion of thr project file and /// retun True, if the configuration is missed or mismatched /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isConfigurationMismatch(string svnpath, string platform, string projectname, string VSVersion) { bool isMismatch = false, isSlnMismatch = true; //string projectfilePath = string.Empty; //ProjectLocation objLocation = new ProjectLocation(); //string projectLocation = string.Empty; projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (platform.ToLower().Equals("windows") | platform.ToLower().Equals("base")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2005.csproj"; if (File.Exists(projectLocation)) { isMismatch = parseConfiguration(projectLocation); } projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2005.sln"; if (File.Exists(projectLocation)) { isSlnMismatch = parseSolutionFile(projectLocation); } } if (VSVersion.Equals("2005") || VSVersion.Equals("2008")) { if (platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj"; if (File.Exists(projectLocation)) { isMismatch = parseConfiguration(projectLocation); } projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".sln"; if (File.Exists(projectLocation)) { isSlnMismatch = parseSolutionFile(projectLocation); } } } if (!platform.ToLower().Equals("silverlight")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj"; if (File.Exists(projectLocation) && !projectLocation.ToLower().Contains("wp8")) { isMismatch = parseConfiguration(projectLocation); } projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".sln"; if (File.Exists(projectLocation)) { isSlnMismatch = parseSolutionFile(projectLocation); } } if (platform.ToLower().Equals("silverlight") && !projectname.ToLower().Contains("dll.design")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectLocation)) { isMismatch = parseConfiguration(projectLocation); } projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2010.sln"; if (File.Exists(projectLocation)) { isSlnMismatch = parseSolutionFile(projectLocation); } if (!projectname.ToLower().Contains("design")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; if (File.Exists(projectLocation)) { isMismatch = parseConfiguration(projectLocation); } projectLocation = projectfilePath + "\\Syncfusion." + projectname + "5_2010.sln"; if (File.Exists(projectLocation)) { isSlnMismatch = parseSolutionFile(projectLocation); } } } if (isMismatch)// || !isSlnMismatch) { return(true); } else { return(false); } }
/// <summary> /// This function retuns the boolean value based on the DefineConstants values which is in project file /// </summary> /// <param name="svnpath"></param> /// <param name="platform"></param> /// <param name="projectname"></param> /// <returns></returns> public bool isDefineConstantMismatch(string svnpath, string platform, string projectname, string VSVersion) { // Local variables bool isMismatch = false, isSlnMismatch = false; string projectfilePath = string.Empty; ProjectLocation objLocation = new ProjectLocation(); string projectLocation = string.Empty; // Set VS2005 project file location, if platform is equal to windows or base projectfilePath = objLocation.projectPath(svnpath, platform, projectname); if (platform.ToLower().Equals("windows") || platform.ToLower().Equals("base")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2005.csproj"; if (File.Exists(projectLocation)) { isMismatch = parsingProjectFile(projectLocation); } } // Set VS2008 project files, if platform is equal to wpf or windows or web or base if (platform.ToLower().Equals("base") || platform.ToLower().Equals("wpf") || platform.ToLower().Equals("windows") || platform.ToLower().Equals("web")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2008.csproj"; if (File.Exists(projectLocation)) { isMismatch = parsingProjectFile(projectLocation); } } // Set VS2010 and VS2012 project files, if platform is not equal to silverlight if (!platform.ToLower().Equals("silverlight")) { projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_" + VSVersion + ".csproj"; if (File.Exists(projectLocation)) { isMismatch = parsingProjectFile(projectLocation); } } // Only for silverlight projects if (platform.ToLower().Equals("silverlight") && !projectname.ToLower().Contains("dll.design")) { // For silverlight 4 projects projectLocation = projectfilePath + "\\Syncfusion." + projectname + "_2010.csproj"; if (File.Exists(projectLocation)) { isMismatch = parsingProjectFile(projectLocation); } // For silverlight5 projeccts projectLocation = projectfilePath + "\\Syncfusion." + projectname + "5_2010.csproj"; // Check file existence if (File.Exists(projectLocation)) { isMismatch = parsingProjectFile(projectLocation); } } return(isMismatch); }