예제 #1
0
        protected void ParseMdCsProj(string fname)
        {
            string projectName;

            PrjxInfo pi = new PrjxInfo(m_bIsUnix, m_bIsMcs, fname);
            projectName = pi.name;
            projNameInfo[projectName] = pi;
        }
예제 #2
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(MonoDevelop.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;
                    }
            }
        }