Posts Tagged ‘project’

Remove Boo and UnityScript references from Unity projects.

Tuesday, October 6th, 2015

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:

using UnityEditor;
using SyntaxTree.VisualStudio.Unity.Bridge;
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, "");