public Version GetActualVersion([CanBeNull] IProject project) { // Project might be null for e.g. decompiled files if (project == null) return new Version(0, 0); var version = myUnityProjectFileCache.GetUnityVersion(project); return version ?? GetActualVersionForSolution(); }
public Version GetActualVersion(IProject project) { var version = myUnityProjectFileCache.GetUnityVersion(project); return(version ?? GetActualVersion(project.GetSolution())); }