public IEnumerator EditorPluginsReferencePlugin()
        {
            CreateFolder($"{Application.dataPath}/Plugins");
            CreateFolder($"{Application.dataPath}/Plugins/Editor");
            CopyScriptToAssetsFolder($"{Application.dataPath}/Plugins", "Plugin.cs", k_EmptyCSharpScript);
            CopyScriptToAssetsFolder($"{Application.dataPath}/Plugins/Editor", "EditorPlugin.cs", k_EmptyCSharpScript);
            var dir = Directory.GetParent(Application.dataPath).FullName;

            m_CsProjPath = Path.Combine(dir, "Assembly-CSharp-Editor-firstpass.csproj");

            yield return(new RecompileScripts(true));

            m_ProjectGeneration.Sync();

            var projectReferences = new[]
            {
                "Assembly-CSharp-firstpass",
                "Unity.Rider.Editor",
                "AsmdefResponse"
            };
            var expectedReferencesEditor = new[]
            {
                "System",
                "System.Xml",
                "System.Core",
                "UnityEngine",
                "UnityEditor",
                "UnityEditor.Graphs"
            };
            var projectXml = XMLUtilities.FromFile(m_CsProjPath);

            XMLUtilities.AssertReferencesContainAll(projectXml, expectedReferencesEditor);
            XMLUtilities.AssertProjectReferencesMatchExactly(projectXml, projectReferences);
        }
        public IEnumerator ReferencesPlugins()
        {
            CreateFolder($"{Application.dataPath}/Plugins");
            CopyScriptToAssetsFolder(Application.dataPath, "SimpleCSharpScript.cs", k_EmptyCSharpScript);
            CopyScriptToAssetsFolder($"{Application.dataPath}/Plugins", "Plugin.cs", k_EmptyCSharpScript);
            var dir = Directory.GetParent(Application.dataPath).FullName;

            m_CsProjPath = Path.Combine(dir, "Assembly-CSharp.csproj");

            yield return(new RecompileScripts(true));

            m_ProjectGeneration.Sync();

            var projectReferences = new[]
            {
                "Assembly-CSharp-firstpass",
                "Unity.Rider.Editor",
                "AsmdefResponse"
            };
            var projectXml = XMLUtilities.FromFile(m_CsProjPath);

            XMLUtilities.AssertProjectReferencesMatchExactly(projectXml, projectReferences);
        }