예제 #1
0
        // 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.");
        }
예제 #2
0
        public bool CreatePrjxFromCsproj(string csprojFileName)
        {
            SlnMaker slnMkObj = new SlnMaker();

            // Load the csproj and parse it
            slnMkObj.CreatePrjxFromCsproj(csprojFileName);

            return(false);
        }
예제 #3
0
        public bool CreateCombineFromSln(string slnFileName)
        {
            SlnMaker slnMkObj = new SlnMaker();

            // Load the sln and parse it
            slnMkObj.MsSlnToCmbxHelper(slnFileName);

            return(false);
        }
예제 #4
0
		public bool CreatePrjxFromCsproj(string csprojFileName)
		{
			SlnMaker slnMkObj = new SlnMaker();

			// Load the csproj and parse it
			slnMkObj.CreatePrjxFromCsproj(csprojFileName);

			return false;
		}
예제 #5
0
		public bool CreateCombineFromSln(string slnFileName)
		{
			SlnMaker slnMkObj = new SlnMaker();

			// Load the sln and parse it
			slnMkObj.MsSlnToCmbxHelper(slnFileName);

			return false;
		}
예제 #6
0
 // 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.";
 }