Visual Studio output file permissions?

前端 未结 4 1315
孤城傲影
孤城傲影 2020-12-01 08:24

I\'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator?

4条回答
  •  Happy的楠姐
    2020-12-01 08:36

    Wooho I finally figured this one out.

    It's a bug in Windows 7 and likely in Windows Server 2008 (possibly 64bit versions only). It surfaces when you disable Application Experience service.

    Re-enabling this service has fixed this problem for me.

    You can't imagine how happy I am, this was making programming so frustrating as it's not just messing with VC, but any compiler and to top it off it's quite random.

    A bit more info here as to why it's causing a problem.

    List of other SO questions which seem to be related:

    • Under which circumstances does the System process (PID 4) retain an open file handle?
    • Windows 2008 R2 - Kernel (System Process PID=4) is locking files and folders

提交回复
热议问题