Beispiel #1
0
        public static bool Install(string vsVersion, string vsEdition)
        {
            if (!IsLINQPadInstalled(vsVersion)) //ask the user to insert a custom location
            {
                return(false);
            }

            ObsoleteXmlConfiguration.RemoveOldTargets();

            SetBridgeVsAssemblyVersion(vsVersion);

            CreateLinqPadQueryFolder();

            CreateLinqPadPluginFolders();

            CreateVisualizerFolder(vsVersion);

            CreateGrappleFolder();

            CreateLogFolder();

            //Always check if installation folder has changed
            SetInstallationFolder(vsVersion);

            DeployMsBuildTargets(vsVersion, vsEdition);

            GenerateGuidForCurrentInstallation(vsVersion);

            DeleteExistingVisualizers(vsVersion);

            DeployDependencies(vsVersion);

            return(true);
        }
        public static bool Install(string vsVersion, string vsEdition)
        {
            Log.Write("Configuring LINQBridgeVs Extension");

            try
            {
                if (!IsLINQPadInstalled()) //ask the user to insert a custom location
                {
                    return(false);
                }

                ObsoleteXmlConfiguration.RemoveOldTargets();

                SetBridgeVsAssemblyVersion(vsVersion);

                CreateLinqPadQueryFolder();

                CreateLinqPadPluginFolder();

                //Always check if installation folder has changed
                SetInstallationFolder(vsVersion);

                Log.Write("Setting the Environment");

                SetEnvironment(vsVersion, vsEdition);

                DeleteExistingVisualizers(vsVersion);

                DeployDependencies(vsVersion);

                return(true);
            }
            catch (Exception e)
            {
                Log.Write(e, "Error Configuring LINQBridgeVs");
                return(false);
            }
        }