[英]Few issues after installing Visual Studio 2015 Community edition
I installed Visual Studio 2015 Community edition to checkout the different feature. 我安装了Visual Studio 2015社区版以签出其他功能。 Before that I was using VS 2013 for development. 在此之前,我使用VS 2013进行开发。 Few issues that I am facing after installing VS 2015 are 安装VS 2015后我面临的几个问题是
1) Package manager is not able to download few of the assemblies like Microsoft.Data.OData,Microsoft.Data.Edm 1)程序包管理器无法下载一些程序集,例如Microsoft.Data.OData,Microsoft.Data.Edm
2) Solution which was building successfully in VS 2013 now gives a alert saying symbol not loaded for a particular project. 2)在VS 2013中成功构建的解决方案现在发出警报,提示未为特定项目加载符号。 No such alerts in VS2015. VS2015中没有此类警报。
I am not 100% sure these are related to VS 2015 but there are no other changes done which explains these issues. 我不是100%肯定这些与VS 2015有关,但是没有做任何其他更改来解释这些问题。
Let me know if anyone else is also facing these issues or knows solution. 让我知道是否还有其他人也面临这些问题或知道解决方案。
Didn't find the answer, so posting because this question shows in search results; 找不到答案,因此发布,因为此问题显示在搜索结果中; comment from prashant is correct (in my case) 来自prashant的评论是正确的(在我的情况下)
In my situation, we use a Git repo, all working fine on one laptop. 在我的情况下,我们使用一个Git存储库,在一台笔记本电脑上都能正常工作。 I cloned to another laptop and I was getting this error on build, same version of VS 2015. 我克隆到另一台笔记本电脑,并且在构建和VS 2015相同版本时遇到此错误。
Reinstalling the nuget packages from the Package Manager Console worked 从程序包管理器控制台重新安装nuget程序包成功
Update-Package -reinstall
As detailed here https://docs.microsoft.com/en-gb/nuget/consume-packages/reinstalling-and-updating-packages 如此处详细说明https://docs.microsoft.com/en-gb/nuget/consume-packages/reinstalling-and-updating-packages
edit: incidentally the issue seems to have arisen from someone changing the target framework for the projects, but not checking in the changes to the nuget packages/configs which were still targeting 4.5.2 编辑:顺便说一句,问题似乎是由于有人更改了项目的目标框架,但没有检查对仍以4.5.2为目标的nuget包/配置的更改
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.