简体   繁体   English

在寻求新的工作空间或分支之后,解决方案中缺少参考dll

[英]Reference dll 's are missing from the solution after going for new work space or branching

I created the MVC application and build the solution in my local machine and it builds without error then I have uploaded that MVC application into TFVC. 我创建了MVC应用程序,并在本地计算机上构建了解决方案,并且构建过程没有错误,然后将MVC应用程序上传到了TFVC。 But, if i take a new workspace from the other developer machine or going for the Branching feature in TFVC, we have been endup with all the reference dll's which was showing deleted like below screen shot and the solution does not build successfully. 但是,如果我从其他开发人员的机器上获取了一个新的工作空间,或者打算使用TFVC中的“分支”功能,那么我们将被所有参考dll所破坏,如下面的屏幕快照所示,该参考dll已被删除,并且解决方案无法成功构建。 We are not sure what its causing the issue. 我们不确定是什么引起了问题。 Please help us to resolve this issue. 请帮助我们解决此问题。 Thanks in advance. 提前致谢。

在此处输入图片说明

Update Actual problem i am facing here is, I run update-package -reinstall command in the Package Manager Console, it removed all the existing dll's and restored back all the dll and build successfully. 更新我在这里面临的实际问题是,我在程序包管理器控制台中运行update-package -reinstall命令,它删除了所有现有的dll,并恢复了所有dll并成功构建。 But, After successful Build, I have checked-in the pending changes into TFS. 但是,在成功构建之后,我已经将未完成的更改签入到TFS中。 But again if I am taking the new workspace from another developer machine, i am still endup with the same build error and missing reference like above screen shot again i have to go for the Nuget Package Restore. 但是再次,如果我要从另一台开发人员机器上获取新的工作区,那么我仍然会遇到相同的构建错误,并且缺少参考,如上面的屏幕快照一样,我不得不去进行Nuget软件包还原。 Is it a Correct approach? 这是正确的方法吗? Appreciate your thoughts on this. 感谢您对此的想法。

right click on the solution and select restore nuget package this may solve your issue then clean and build 右键单击解决方案,然后选择restore nuget package,这可能会解决您的问题,然后清理并构建

check dot net framework version in both tfs and local version tfslocal version检查dot net framework local version

you can also try 你也可以尝试

update-package -reinstall command to reinstall all referenced packages. update-package -reinstall命令以重新安装所有引用的软件包。

我认为您应该尝试恢复丢失的NuGet软件包,请检查“ VS设置”>“ NuGet”中是否选中了该选项。

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

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