Skip to content

Instantly share code, notes, and snippets.

@aienabled
Last active December 28, 2015 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aienabled/7f6f3f453042ef905ffd to your computer and use it in GitHub Desktop.
Save aienabled/7f6f3f453042ef905ffd to your computer and use it in GitHub Desktop.
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