// Main entry point for Makefile generation public string MakerMain(bool isUnixMode, bool isMcsMode, string slnFile) { SlnMaker mk1Obj = null; CmbxMaker mk2Obj = null; // Test to see what kind if file we got // sln, csproj, cmbx, prjx switch (DetermineFileType(slnFile)) { case TypeOfFile.sln: mk1Obj = new SlnMaker(); return(mk1Obj.MsSlnHelper(isUnixMode, isMcsMode, true, slnFile)); case TypeOfFile.csproj: mk1Obj = new SlnMaker(); return(mk1Obj.MsSlnHelper(isUnixMode, isMcsMode, false, slnFile)); case TypeOfFile.cmbx: mk2Obj = new CmbxMaker(); return(mk2Obj.MdCmbxHelper(isUnixMode, isMcsMode, true, slnFile)); case TypeOfFile.prjx: mk2Obj = new CmbxMaker(); return(mk2Obj.MdCmbxHelper(isUnixMode, isMcsMode, false, slnFile)); } return("Error: unknown file type."); }
// Main entry point for Makefile generation public string MakerMain(bool isUnixMode, bool isMcsMode, string slnFile) { SlnMaker mk1Obj = null; CmbxMaker mk2Obj = null; // Test to see what kind if file we got // sln, csproj, cmbx, prjx switch(DetermineFileType(slnFile)) { case TypeOfFile.sln: mk1Obj = new SlnMaker(); return mk1Obj.MsSlnHelper (isUnixMode, isMcsMode, true, slnFile); case TypeOfFile.csproj: mk1Obj = new SlnMaker(); return mk1Obj.MsSlnHelper (isUnixMode, isMcsMode, false, slnFile); case TypeOfFile.cmbx: mk2Obj = new CmbxMaker(); return mk2Obj.MdCmbxHelper (isUnixMode, isMcsMode, true, slnFile); case TypeOfFile.prjx: mk2Obj = new CmbxMaker(); return mk2Obj.MdCmbxHelper (isUnixMode, isMcsMode, false, slnFile); } return "Error: unknown file type."; }