Visual Studio locks output file on build

前端 未结 16 1355
一生所求
一生所求 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 06:52

    I ran into the same thing developing xamarin apps in VS2017.

    It happened to be Windows Defender locking the exe/dll with devenv.exe.

    You can go to Win Defender and add

    devenv.exe
    msbuild.exe
    

    to the process exclusion list.

提交回复
热议问题