部署失败:您必须向程序集添加引用;但是参考已经存在 [英] Deployment fails: You must add a refernece to an assembly; but the reference already exists

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

问题描述

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


类型'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

解决方案

<您好ShaneCPACanada,


欢迎来到MSDN论坛。


您是如何删除程序集"Sitecore.analytics.core" 并将其添加回来?由于它在回滚时工作正常,您可以检查TFS日志,如果对此引用有任何更改?并比较两个版本
之间的差异作为此参考。 


此外,您的项目类型是什么?网站?如果是,你在哪里找到references文件夹和website.csproj?


我还没有在我的网站项目中找到它。


此外,您可以暂时从版本控制中删除此项目,在visual studio中再次添加此引用,然后构建并部署它,检查它是否正常工作。


希望这会有所帮助。


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

解决方案

Hi ShaneCPACanada,

Welcome to MSDN forum.

How did you  remove the assembly "Sitecore.analytics.core" and adding it back in? Since it worked fine when you rollback, you can check the TFS log, if any change about this reference? And compare the differences between the two versions for this reference. 

Besides, what is your project type? website? If yes, where you find the references folder and the website.csproj?

I have not found it on my website project.

In addition, you can temporarily remove this item from version control, add this reference again in visual studio, then build and deploy it, check if it works fine.

Hope this helps.


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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆