示例#1
0
        protected void ParseCombine(string fname)
        {
            string CombineFilePath = fname;

            // convert backslashes to slashes
            CombineFilePath = CombineFilePath.Replace("\\", "/");

            // loads the file in order to deserialize and
            // build the object graph
            try {
                m_cmbObject = LoadCmbFromFile(CombineFilePath);
            } catch (Exception exc) {
                Console.WriteLine(
                    String.Format("Could not load the file {0}\nException: {1}",
                                  CombineFilePath,
                                  exc.Message)
                    );
                return;
            }

            foreach (Mfconsulting.General.Prj2Make.Schema.Cmbx.Entry ent in m_cmbObject.Entries)
            {
                string projectName = System.IO.Path.GetFileNameWithoutExtension(ent.filename);
                string csprojPath  = ent.filename;

                if (csprojPath.EndsWith(".prjx"))
                {
                    PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, csprojPath);

                    projNameInfo[projectName] = pi;
                }
            }
        }
   		protected void ParseMdCsProj(string fname)
    	{
    		string projectName;
    		
            PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, fname);
            projectName = pi.name;            
			projNameInfo[projectName] = pi;            
    	}
示例#3
0
        protected void ParseMdCsProj(string fname)
        {
            string projectName;

            PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, fname);

            projectName = pi.name;
            projNameInfo[projectName] = pi;
        }
    	protected void ParseCombine(string fname)
    	{
    		string CombineFilePath = fname;
    		
    		// convert backslashes to slashes    		
    		CombineFilePath = CombineFilePath.Replace("\\", "/");
    
    		// loads the file in order to deserialize and
    		// build the object graph
    		try {
    			m_cmbObject = LoadCmbFromFile (CombineFilePath);
			} catch (Exception exc) {
			
				Console.WriteLine (
					String.Format ("Could not load the file {0}\nException: {1}",
						CombineFilePath,
						exc.Message)
					);
				return;			
			}

    		foreach(Mfconsulting.General.Prj2Make.Schema.Cmbx.Entry ent in m_cmbObject.Entries)
    		{
    				string projectName = System.IO.Path.GetFileNameWithoutExtension(ent.filename);
    				string csprojPath = ent.filename;
    
    				if (csprojPath.EndsWith(".prjx"))
    				{
    					PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, csprojPath);
    
    					projNameInfo[projectName] = pi;
    				}    
    		}
    	}