简体   繁体   English

C# sln 中的 csproj.user 文件

[英]csproj.user file in C# sln

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.由于我公司的网络应用了补丁,我的机器自动重启,我看到的最后一个错误报告了 csproj.user 文件的内容。 Now each time i try to launch my solution, it opens and then brings the dialog to send the report to MS.现在,每次我尝试启动我的解决方案时,它都会打开,然后打开对话框将报告发送给 MS。 If i look at the error log in event viewer it shows this如果我查看事件查看器中的错误日志,它会显示这一点

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?有任何想法吗?

I believe the .user file just has your personal IDE settings so they can be restored when you re-open VS.我相信 .user 文件只有您的个人 IDE 设置,因此当您重新打开 VS 时可以恢复它们。 Apparently, your .user file became corrupted.显然,您的 .user 文件已损坏。 It shouldn't hurt anything to delete it other than you will lose any personal settings in the IDE and have to redo them.删除它不会有任何伤害,除非您会丢失 IDE 中的任何个人设置并且必须重做它们。

Delete the .user file.删除 .user 文件。 It should get recreated.它应该被重新创建。

Hmmm, some file got deleted.嗯,一些文件被删除了。 I hope it was part of your project and not a .net framework file.我希望它是您项目的一部分,而不是 .net 框架文件。 Try and recreate your project and solution and copy your file back into it.尝试重新创建您的项目和解决方案,并将您的文件复制回其中。

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。

This is what I did and one of these helped me:这就是我所做的,其中之一帮助了我:

  1. Restored system to last known good point.将系统恢复到最后一个已知的好点。

  2. Opened the csproj file instead of the sln file and things were all happy.打开 csproj 文件而不是 sln 文件,一切都很愉快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM