Ejemplo n.º 1
0
        public static bool IsAbleToEstablishProtocolConnectionWithUnity(FileSystemPath solutionDir)
        {
            var assetsFolder          = solutionDir.CombineWithShortName(AssetsFolder);
            var projectSettingsFolder = solutionDir.CombineWithShortName(ProjectSettingsFolder);
            var libraryFolder         = solutionDir.CombineWithShortName(LibraryFolder);

            return(assetsFolder.IsAbsolute && assetsFolder.ExistsDirectory &&
                   projectSettingsFolder.IsAbsolute && projectSettingsFolder.ExistsDirectory &&
                   libraryFolder.IsAbsolute && libraryFolder.ExistsDirectory);
        }
Ejemplo n.º 2
0
        private static bool HasUnityFileStructure(FileSystemPath solutionDir)
        {
            var assetsFolder          = solutionDir.CombineWithShortName(ProjectExtensions.AssetsFolder);
            var projectSettingsFolder = solutionDir.CombineWithShortName(ProjectExtensions.ProjectSettingsFolder);
            var projectVersionTxtFile = projectSettingsFolder.CombineWithShortName("ProjectVersion.txt");

            return(assetsFolder.IsAbsolute && assetsFolder.ExistsDirectory &&
                   projectSettingsFolder.IsAbsolute && projectSettingsFolder.ExistsDirectory &&
                   (projectVersionTxtFile.IsAbsolute && projectVersionTxtFile.ExistsFile ||
                    projectSettingsFolder.GetChildFiles("*.asset").Any()));
        }
        public static bool IsSolutionGeneratedByUnity(FileSystemPath solutionDir)
        {
            var assetsDir = solutionDir.CombineWithShortName("Assets");

            return(assetsDir.IsAbsolute && assetsDir.ExistsDirectory);
        }