Exemple #1
0
    static void Main(string[] args)
    {
        CsScript.CleanupScScriptTempDir();

        String        hostExePath = @"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe";
        String        cmdArgs     = "Exp"; // "/rootsuffix Exp" - launch experimental version of visual studio.
        List <String> csScripts   = new List <string>();

        for (int i = 0; i < args.Length; i++)
        {
            if (args[i] == "/exe")
            {
                hostExePath = args[++i];
                if (!Path.IsPathRooted(hostExePath))
                {
                    hostExePath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), hostExePath);
                }

                continue;
            }

            csScripts.Add(args[i]);
        }

        ScriptServer_ConnectDebugger(null, CodeType.Managed, csScripts, hostExePath, cmdArgs);
    }
Exemple #2
0
 static void Main(string[] args)
 {
     Class1.dataList.Add("ScriptHost::Main was here");
     CsScript.CleanupScScriptTempDir();
     ScriptServer_ConnectDebugger(CodeType.Managed, null);
 }