开发者

VS C#: Prompts me to resave, then refuses to open the file

开发者 https://www.devze.com 2022-12-17 02:44 出处:网络
Sometimes when I hit Save (ctrl+s) or just Save All, Visual Studio C# prompts me to resave the file I edited last. I can\'t save it as it is, because it already exists (and it should), and if I save i

Sometimes when I hit Save (ctrl+s) or just Save All, Visual Studio C# prompts me to resave the file I edited last. I can't save it as it is, because it already exists (and it should), and if I save it as something else, VS will prompt me for the file everytime I try to build.

If I shut down Visual Studio and try to access the file with notepad, it gives me an "access denied" message.开发者_StackOverflow中文版

This is starting to piss me off since I have to redo a lot of things. Any known cause?

I'm using Windows Vista (32-bit and logged in from an administrator account).


Something is messing with the file, not Visual Studio. Use SysInternals' Handle utility to find out what process does this. Pop the network cable to block out co-workers with an odd sense of humor.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号