Remove Boo and UnityScript references from Unity projects.

To stop Resharper in Visual Studio suggesting Boo.Lang when declaring List<>’s and other types common to both libraries, simply put this script in your editor folder.

Original source: https://gist.github.com/jbevain/a982cc580fb796c93e4e

using UnityEditor;
using SyntaxTree.VisualStudio.Unity.Bridge;
 
[InitializeOnLoad]
public class ReferenceRemovalProjectHook
{
	static ReferenceRemovalProjectHook()
	{
		const string references = "\r\n    <Reference Include=\"Boo.Lang\" />\r\n    <Reference Include=\"UnityScript.Lang\" />";

		ProjectFilesGenerator.ProjectFileGeneration += (string name, string content) =>
			content.Replace(references, "");
	}
}

Tags: , , , , , ,

Leave a Reply