Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# VS 2013在按下启动调试后停止工作_C#_Visual Studio - Fatal编程技术网

C# VS 2013在按下启动调试后停止工作

C# VS 2013在按下启动调试后停止工作,c#,visual-studio,C#,Visual Studio,我在C#中启动了一个新项目,为此我决定“破坏”自己,并从2010年升级到VS2013。 我刚开始使用一个简单的vary from应用程序 using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using System.Windows.Forms; namespace WindowsFormsApplication2 { static class Progr

我在
C#
中启动了一个新项目,为此我决定“破坏”自己,并从2010年升级到VS2013。 我刚开始使用一个简单的vary from应用程序

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
static class Program
{
    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.SetCompatibleTextRenderingDefault(false);
        Application.Run(new Form1());
    }
}
}
现在,在推送构建之后,问题来了 我推了一下start,发现了这个问题:多个From被打开,VS被压碎

事故图片:

请帮帮我!我已经在谷歌上搜索过了,什么也找不到。提前谢谢你

附言
问题是不同版本的多个可视安装(2008、2012)
刚刚删除了它们,现在一切正常

请在您的问题中提供图像的URL,我将使其成为图像。我是新来的,您能给我一个示例,以便我可以编辑我的Q吗?只需将图像上载到dumpyourphoto.com或其他图像托管网站,并提供URL.:)这段代码不可能打开多个窗口。您要么没有向我们显示全部代码,要么Windows中存在严重的错误。我无法用我的VS 2013重现这一点……如果删除所有您个人编写的代码并将其作为空白应用程序运行,会发生什么?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication2
{
public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();
        //RndColor();

    }
    public void RndColor()
    {
        Random randomGen = new Random();
        KnownColor[] names = (KnownColor[])Enum.GetValues(typeof(KnownColor));
        KnownColor randomColorName = names[randomGen.Next(names.Length)];
        Color randomColor = Color.FromKnownColor(randomColorName);
        TestingBut.BackColor = randomColor;


    }

    private void TestingBut_Click(object sender, EventArgs e)
    {
        //Task NewTask = new Task()
        //Control Ctrl = new (Control(sender));
        RndColor();
        if (TestingChk.Checked)
        {
            ScrnMain.AppendText("Test Me");


        }
    }
}
}