Beispiel #1
0
 static SyncVS()
 {
     SyncVS.Synchronizer = new SolutionSynchronizer(Directory.GetParent(Application.dataPath).FullName, new SyncVS.SolutionSynchronizationSettings());
     EditorUserBuildSettings.activeBuildTargetChanged = (Action)Delegate.Combine(EditorUserBuildSettings.activeBuildTargetChanged, new Action(SyncVS.SyncVisualStudioProjectIfItAlreadyExists));
     try
     {
         SyncVS.InstalledVisualStudios = (SyncVS.GetInstalledVisualStudios() as Dictionary <VisualStudioVersion, string>);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error detecting Visual Studio installations: {0}{1}{2}", ex.Message, Environment.NewLine, ex.StackTrace);
         SyncVS.InstalledVisualStudios = new Dictionary <VisualStudioVersion, string>();
     }
 }
Beispiel #2
0
 static SyncVS()
 {
     EditorUserBuildSettings.activeBuildTargetChanged += new System.Action(SyncVS.SyncVisualStudioProjectIfItAlreadyExists);
     try
     {
         SyncVS.InstalledVisualStudios = SyncVS.GetInstalledVisualStudios() as Dictionary <VisualStudioVersion, string>;
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error detecting Visual Studio installations: {0}{1}{2}", (object)ex.Message, (object)Environment.NewLine, (object)ex.StackTrace);
         SyncVS.InstalledVisualStudios = new Dictionary <VisualStudioVersion, string>();
     }
     SyncVS.SetVisualStudioAsEditorIfNoEditorWasSet();
     UnityVSSupport.Initialize();
 }
Beispiel #3
0
 static SyncVS()
 {
     SyncVS.Synchronizer = new SolutionSynchronizer(Directory.GetParent(Application.dataPath).FullName, new SyncVS.SolutionSynchronizationSettings());
     try
     {
         SyncVS.InstalledVisualStudios = (SyncVS.GetInstalledVisualStudios() as Dictionary <VisualStudioVersion, VisualStudioPath[]>);
     }
     catch (Exception ex)
     {
         Console.WriteLine("Error detecting Visual Studio installations: {0}{1}{2}", ex.Message, Environment.NewLine, ex.StackTrace);
         SyncVS.InstalledVisualStudios = new Dictionary <VisualStudioVersion, VisualStudioPath[]>();
     }
     SyncVS.SetVisualStudioAsEditorIfNoEditorWasSet();
     UnityVSSupport.Initialize();
 }
Beispiel #4
0
        static SyncVS()
        {
            SyncVS.Synchronizer = new SolutionSynchronizer(Directory.GetParent(Application.dataPath).FullName, new SyncVS.SolutionSynchronizationSettings());
            Delegate arg_41_0 = EditorUserBuildSettings.activeBuildTargetChanged;

            if (SyncVS.< > f__mg$cache0 == null)
            {
                SyncVS.< > f__mg$cache0 = new Action(SyncVS.SyncVisualStudioProjectIfItAlreadyExists);
            }
            EditorUserBuildSettings.activeBuildTargetChanged = (Action)Delegate.Combine(arg_41_0, SyncVS.< > f__mg$cache0);
            try
            {
                SyncVS.InstalledVisualStudios = (SyncVS.GetInstalledVisualStudios() as Dictionary <VisualStudioVersion, string>);
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error detecting Visual Studio installations: {0}{1}{2}", ex.Message, Environment.NewLine, ex.StackTrace);
                SyncVS.InstalledVisualStudios = new Dictionary <VisualStudioVersion, string>();
            }
            SyncVS.SetVisualStudioAsEditorIfNoEditorWasSet();
            UnityVSSupport.Initialize();
        }