I create a C# windows form application in visual studio 2010. I create some controls and darg them into my main form. Every time I change the controls, building of the project faild because the exe (output) file is locked (there is no any syntax error). After above error I have to close VS and reopen the project.
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? You can't recompile it if the output is running, then Visual Studio won't be able to replace it.
精彩评论