Пример #1
0
        internal new static SharedProject Load(string projectFileName, string solutionIdentifier = null)
        {
            var sharedProject = new SharedProject {
                FileName = projectFileName
            };

            sharedProject.Load();
            sharedProject.SolutionIdentifier = solutionIdentifier;
            return(sharedProject);
        }
Пример #2
0
        internal new static SharedProject LoadFromFile(string fileName)
        {
            var sharedProject = new SharedProject();

            try
            {
                var projectFileName = fileName.GetParentSharedProject();
                return(Load(projectFileName));
            }
            catch (Exception e)
            {
                sharedProject.Exception = e;
            }

            return(sharedProject);
        }