gpt4 book ai didi

c# - 推送开始调试后 VS 2013 停止工作

转载 作者:太空宇宙 更新时间:2023-11-03 13:28:50 26 4
gpt4 key购买 nike

我在 C# 中开始了一个新项目,为此我决定“宠坏”自己并从 2010 年升级到 VS 2013。我刚开始使用 vary simple from application

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());
}
}
}

这是表单代码,同样是基本的。

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");


}
}
}
}

现在发布,在推送构建之后我按下开始并遇到这个问题:打开了多个 From 并且 VS 崩溃了

崩溃图片:

enter image description here

请帮帮我!我用谷歌搜索了其中的废话,但什么也找不到。提前谢谢你!

附言לא מגיב == 未用希伯来语回复

最佳答案

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

关于c# - 推送开始调试后 VS 2013 停止工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21362716/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com