コード例 #1
0
ファイル: MdPrjHelper.cs プロジェクト: raj581/Marvin
        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;
                }
            }
        }
コード例 #2
0
   		protected void ParseMdCsProj(string fname)
    	{
    		string projectName;
    		
            PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, fname);
            projectName = pi.name;            
			projNameInfo[projectName] = pi;            
    	}
コード例 #3
0
ファイル: MdPrjHelper.cs プロジェクト: raj581/Marvin
        protected void ParseMdCsProj(string fname)
        {
            string projectName;

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

            projectName = pi.name;
            projNameInfo[projectName] = pi;
        }
コード例 #4
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;
    				}    
    		}
    	}