Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Avoid (re)generation of the Unity VisualStudio solution file for Unity 5.2+
using SyntaxTree.VisualStudio.Unity.Bridge.Configuration;
using UnityEditor;
/// <summary>
/// Avoid (re)generation of the solution file
/// Unfortunately this settings is hidden since Unity 5.2 (when UnityVS was integrated into VS)
/// HOW TO USE: place into your Assets/Editor folder.
/// https://gist.github.com/aienabled/7f6f3f453042ef905ffd
/// </summary>
[InitializeOnLoad]
public static class AvoidUnityVisualStudioSolutionRegeneration
{
static AvoidUnityVisualStudioSolutionRegeneration()
{
Configurations.Active.GenerateSolutionFile = false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment