FlatRedBall.Glue.ProjectManager.ShouldFileBeInContentProject C# (CSharp) Method

ShouldFileBeInContentProject() private static method

private static ShouldFileBeInContentProject ( string fileToAddAbsolute ) : bool
fileToAddAbsolute string
return bool
        private static bool ShouldFileBeInContentProject(string fileToAddAbsolute)
        {
            bool toReturn = FileManager.IsRelativeTo(fileToAddAbsolute, FileManager.GetDirectory(ContentProject.FullFileName));

            // If this is a .cs file and the content project is the same project as the main project, then it's actually a code file
            if (toReturn && ContentProject.FullFileName == ProjectBase.FullFileName && FileManager.GetExtension(fileToAddAbsolute) == "cs")
            {
                toReturn = false;
            }

            return toReturn;
        }