C# sln 中的 csproj.user 文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/353898/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
csproj.user file in C# sln
提问by user38230
my machine did an automatic reboot, due to patch applied by my network in my company, and last error i saw reported something with the csproj.user file. Now each time i try to launch my solution, it opens and then brings the dialog to send the report to MS. If i look at the error log in event viewer it shows this
由于我公司的网络应用了补丁,我的机器自动重启,我看到的最后一个错误报告了 csproj.user 文件的内容。现在,每次我尝试启动我的解决方案时,它都会打开,然后打开对话框将报告发送给 MS。如果我查看事件查看器中的错误日志,它会显示这一点
EventType clr20r3, P1 devenv.exe, P2 8.0.50727.762, P3 45716759, P4 system, P5 2.0.0.0, P6 4889de7a, P7 5a2, P8 0, P9 system.io.filenotfoundexception, P10 NIL.
EventType clr20r3, P1 devenv.exe, P2 8.0.50727.762, P3 45716759, P4 system, P5 2.0.0.0, P6 4889de7a, P7 5a2, P8 0, P9 system.io.filenotfoundIL.P1
EventType clr20r3, P1 devenv.exe, P2 8.0.50727.762, P3 45716759, P4 system, P5 2.0.0.0, P6 4889de7a, P7 5a2, P8 0, P9 system.io.filenotfoundexception, P10 NIL.
EventType clr20r3, P1 devenv.exe, P2 8.0.50727.762, P3 45716759, P4 system, P5 2.0.0.0, P6 4889de7a, P7 5a2, P8 0, P9 system.io.filenotfoundIL.P1
.NET Runtime version 2.0.50727.3053 - Fatal Execution Engine Error (7A2E0F92) (0)
.NET 运行时版本 2.0.50727.3053 - 致命执行引擎错误 (7A2E0F92) (0)
any ideas?
有任何想法吗?
回答by John Batdorf
Delete the .user file it should get recreated.
删除它应该重新创建的 .user 文件。
回答by Jim Anderson
I believe the .user file just has your personal IDE settings so they can be restored when you re-open VS. Apparently, your .user file became corrupted. It shouldn't hurt anything to delete it other than you will lose any personal settings in the IDE and have to redo them.
我相信 .user 文件只有您的个人 IDE 设置,因此当您重新打开 VS 时可以恢复它们。显然,您的 .user 文件已损坏。删除它不会有任何伤害,除非您会丢失 IDE 中的任何个人设置并且必须重做它们。
回答by Ron Todosichuk
Hmmm, some file got deleted. I hope it was part of your project and not a .net framework file. Try and recreate your project and solution and copy your file back into it.
嗯,一些文件被删除了。我希望它是您项目的一部分,而不是 .net 框架文件。尝试重新创建您的项目和解决方案,并将您的文件复制回其中。
Hopefully this is not happening when you create a new solution or project. If it is you may need to reinstall Visual Studio.
希望在您创建新的解决方案或项目时不会发生这种情况。如果是,您可能需要重新安装 Visual Studio。
回答by user38230
This is what I did and one of these helped me
这就是我所做的,其中之一帮助了我
Restored system to last known good point
opened the csproj file instead of the sln file and things were all happy.
将系统恢复到最后一个已知的好点
打开 csproj 文件而不是 sln 文件,一切都很愉快。