简体   繁体   English

获取最新的Vesion找不到参考

[英]Get Latest Vesion Can't Find References

I accidentally deleted my solution folder. 我不小心删除了我的解决方案文件夹。 No problem because I've got everything under source control. 没问题,因为我已将所有内容都控制在源代码之下。 I did "Get Latest Version" because I'm the only developer and I check in very regularly. 我做了“获取最新版本”是因为我是唯一的开发人员,而且我会定期检查。 I now have 40 Warnings and 17 Errors which, from what I can tell, all relate to references. 我现在有40条警告和17条错误,据我所知,所有这些均与参考有关。

This has happened several times before, but the errors were mostly about OAuth. 这之前已经发生过好几次了,但是错误主要与OAuth有关。 Now there are a lot of different references listed. 现在列出了许多不同的参考。

In the past, I have just created a new project and copy and pasted my code in. This is very wrong, I know, but I have searched the internet and SO to no avail. 过去,我刚刚创建了一个新项目,然后将我的代码复制并粘贴到其中。我知道这是非常错误的,但是我搜索了互联网,因此无济于事。

Does this happen to other people? 这会发生在其他人身上吗? and why? 为什么呢? and how did you fix it? 以及如何解决? I have yet to discern a specific action of mine causing this. 我还没有发现造成这种情况的具体行为。 It appears random, but I know it's probably me. 它似乎是随机的,但我知道可能是我。

Assuming you are using TFS, try Get Specifc Version. 假设您正在使用TFS,请尝试获取特定版本。 And select Overwrite writable files. 并选择“覆盖可写文件”。

TFS thinks it knows which files are on your system (it's wrong) and won't give you a new copy unless you force it to. TFS认为它知道系统上有哪些文件(这是错误的),除非您强制执行,否则不会给您新的副本。

<humor> <幽默>
Q: How do you fix it? 问:如何解决?

A: Use a real source control system rather than TFS. 答:请使用真实的源代码管理系统,而不要使用TFS。 (CVS, Subversion, Mercurial, git, etc...) (CVS,Subversion,Mercurial,git等)
</humor> </ humor>

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

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