本文介绍了部署失败:您必须向程序集添加引用;但是参考已经存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的部署失败并出现同样的错误


类型'Sitecore.Anallytics.Core.Ipage'是在一个不是的程序集中定义的引用。您必须添加对程序集'Sitecore.analytics.core,version = 8.1.0.0,culture = neutral,publckeytoken = null'


 

$的引用b $ b

但是,此程序集作为参考添加。我可以在TFS的references文件夹中看到它,如果我在记事本中打开website.csproj文件,我看到这个精确程序集也有一个条目。当我手动构建(Build> Build网站)时,它编译
并且构建正常而没有错误。


我已经尝试删除程序集并将其重新添加。我甚至对我的变更集进行了回滚,并在回滚后进行了部署好了。但是一旦我再次进行更改,它就会失败。


此时我不知道为什么它一直告诉我这个引用不存在时它就不存在了确实。您之前是否看到过此类错误或有任何建议我可以尝试?


Shane

解决方案

I have a deployment that keeps failing with the same error

The type ‘Sitecore.Anallytics.Core.Ipage’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘Sitecore.analytics.core, version=8.1.0.0, culture=neutral,publckeytoken=null’

However, this assembly is added as a reference. I can see it in the references folder in TFS and if I open the website.csproj file in notepad, I see there’s an entry for this exact assembly as well. When I manually build (Build > Build website) it compiles and builds fine without error.

I’ve already tried removing the assembly and adding it back in. I’ve even did a rollback on my changeset and after the rollback, it deploys fine again. But as soon as I make the changes again, it fails.

At this point I’m at a loss  as to why it keeps telling me this reference doesn’t exist when it does. Have you seen this type of error before or have any suggestions I can try?

Shane

解决方案


这篇关于部署失败:您必须向程序集添加引用;但是参考已经存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-11 16:50