Locking files when building in Visual Studio 2010

前端 未结 11 1860
粉色の甜心
粉色の甜心 2021-02-19 02:28

Hello there, Stackoverflow.

Recently, when I\'ve been programming in Visual Studio 2010, I\'ve been getting the problem with VS locking the bin/Debug/(Pr

相关标签:
11条回答
  • 2021-02-19 03:12

    Change Build Platform target from x86 to Any CPU.

    0 讨论(0)
  • 2021-02-19 03:13

    Have you checked if any files are being blocked by your firewall? When I switched to the full version of Avast I find I have to disable the File System Shield It loves to remove my executable files when I try to run my visual studio projects.

    I had problems when upgrading to VS2012 Professional. (SDK, .Net, Visual C++ Redistributable package)

    ENSURE ALL OF THESE ARE COMPATIBLE WITH THE CURRENT VERSION OF VS YOU ARE USING

    What I did, was I ended up uninstalling EVERYTHING that was associated with both Visual Studio downloads. If you are able to remove and save your project files elsewhere and then bring them back. Go through all your program files to see if there is anything hidden in the wrong folder and check your C drive.

    Which meant downloading and reinstalling (fresh):

    I think if you clean out your program files, it should be ok. I wouldn't recommend going into your register unless you are very sure of what you are doing. IF you have already made changes to the register then we'll have a look at that and other options (if this doesn't solve your problem).

    0 讨论(0)
  • 2021-02-19 03:14

    Try removing the readonly check from your solution by unchecking at the folder level.

    0 讨论(0)
  • 2021-02-19 03:14

    In my case the problem seem to be caused by the remote debugger. It starts on local machine when you compile with "x64" option. Try to change the project setting (properties/buid) until you reach the final version.

    0 讨论(0)
  • 2021-02-19 03:23

    Nothing helped, not prebuild commands, neither designers closing, but I figured out a way that helped me, just changing from debug to release and vice-versa releases locked files and you can delete them without closing the IDE.

    0 讨论(0)
  • 2021-02-19 03:27

    I solved this problem organizing my resources on solution. I noticed this error when I put some images on my application at the same solution folder.

    So,

    • I'd removed all images and resources from app, save without it.
    • Moved the images to outside Solution folder.
    • Open the solution and add this images again, using "Import" button at controls.

    If you will try this, remember to do with Application Icon, on Project Settings.

    Now, everything is working fine for me.

    I hope it helps.

    0 讨论(0)
提交回复
热议问题