Beispiel #1
0
        public static LuaProject FromSingleFile(string languageName, string fileName)
        {
            var projectInfo = new ProjectCreateInformation {
                ProjectName     = Path.GetFileNameWithoutExtension(fileName),
                SolutionPath    = Path.GetDirectoryName(fileName),
                ProjectBasePath = Path.GetDirectoryName(fileName)
            };

            var project = new LuaProject(languageName, projectInfo, null);

            project.AddFile(new ProjectFile(fileName));
            return(project);
        }