简体   繁体   English

Visual Studio 2010 使用控件的错误!

[英]Visual Studio 2010 bug in using controls!

I create a C# windows form application in visual studio 2010. I create some controls and darg them into my main form.我在 Visual Studio 2010 中创建了一个 C# windows 表单应用程序。我创建了一些控件并将它们插入到我的主表单中。 Every time I change the controls, building of the project faild because the exe (output) file is locked (there is no any syntax error).每次我更改控件时,项目的构建都会失败,因为 exe(输出)文件被锁定(没有任何语法错误)。 After above error I have to close VS and reopen the project.出现上述错误后,我必须关闭 VS 并重新打开项目。

My question is I make mistake or visual studio has a bug in this situation?我的问题是我犯了错误或视觉工作室在这种情况下有错误?

Thanks.谢谢。

Is the executable running from the Debug or Release directory?可执行文件是否从 Debug 或 Release 目录运行? You can't recompile it if the output is running, then Visual Studio won't be able to replace it.如果 output 正在运行,则无法重新编译它,那么 Visual Studio 将无法替换它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM