Visual Studio locks output file on build

前端 未结 16 1356
一生所求
一生所求 2020-12-02 06:28

I have a simple WinForms solution in VS 2010. Whenever I build it, output file (bin\\debug\\app.exe) ends up locked, and subsequent builds fail with a message like \"

16条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 07:07

    This is the solution I find out

    1. Uncheck the Visual Studio Hosting Process in project settings as shown below

    1. Kill the exe . it will be your applicationname.vshost.exe from taskmanager

    1. Now you can rebuild you application and run.

    Note: You can re enable this option again with no problems.

提交回复
热议问题