为 Outlook 2010 构建插件时 FindRibbons 任务意外失败

2023-11-29

我们正在使用 VS2013、.NET4、Microsoft Async 和 BCL Portability(来自 Nuget)构建 Outlook 2010 插件,并遇到类似于以下内容的构建错误这个问题 and 本次论坛讨论不幸的是,这些资源(或互联网的其余部分)都没有帮助解决我们的问题。

构建错误和 Fusion 日志位于底部。我的第一个问题:

如何解决这一 FindRibbons 构建任务的问题?从 VS 目标文件中完全删除它可以完成构建,但代价是没有功能区控件。

我们遇到的第二个症状是Attempting downloadFusion 日志的部分。 DLL 在我们的项目下构建bin\Debug目录,因此其他目录搜索很奇怪。这就提出了我的第二个问题:

Fusion 日志中是否存在我们忽略的症状?

最后一个症状来自详细的构建日志,我们在其中看到 mscorlib、System.Core 和其他几个库之间的冲突。这些依赖项通过 Bcl 等进入,4.0.0.0 与 2.0.5.0 的冲突似乎可能会阻止构建或生成 FileNotFoundException。我们尝试了许多补救措施,如绑定重定向等,但未能成功。所以最后一个问题:

此版本构建冲突的解决方案或故障排除提示?

提前谢谢了。抱歉长度。

正如所承诺的,构建失败:

Error    1    The "FindRibbons" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'myDocketOutlookAddIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'myDocketOutlookAddIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'

Server stack trace: 
    at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
    at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
    at System.Reflection.Assembly.Load(String assemblyString)
    at System.UnitySerializationHolder.GetRealObject(StreamingContext context)
    at System.Runtime.Serialization.ObjectManager.ResolveObjectReference(ObjectHolder holder) 
    at System.Runtime.Serialization.ObjectManager.DoFixups()
    at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
    at System.Runtime.Remoting.Channels.CrossAppDomainSerializer.DeserializeObject(MemoryStream stm)
    at System.Runtime.Remoting.Messaging.SmuggledMethodReturnMessage.FixupForNewAppDomain()
    at System.Runtime.Remoting.Channels.CrossAppDomainSink.SyncProcessMessage(IMessage reqMsg)

Exception rethrown at [0]: 
    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
    at Microsoft.Build.Framework.ITask.Execute()
    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

Assembly manager loaded from: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Running under executable C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe
--- A detailed error log follows. 

=== Pre-bind state information ===
LOG: DisplayName = myDocketOutlookAddIn, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
(Fully-specified)
LOG: Appbase = file:///C:/Program Files (x86)/MSBuild/12.0/bin/
LOG: DEVPATH = C:\ProgramData\Red Gate\.NET Reflector\DevPath
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe.Config
LOG: Using host configuration file: 
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/myDocketOutlookAddIn.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/myDocketOutlookAddIn/myDocketOutlookAddIn.DLL.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/myDocketOutlookAddIn.EXE.
LOG: Attempting download of new URL file:///C:/Program Files (x86)/MSBuild/12.0/bin/myDocketOutlookAddIn/myDocketOutlookAddIn.EXE.

以及构建版本冲突摘录:

There was a conflict between "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes". (TaskId:7)
      "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" was chosen because it was primary and "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" was not. (TaskId:7)
      References which depend on "mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" [C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll]. (TaskId:7)
          C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll (TaskId:7)
            Project file item includes which caused reference "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\mscorlib.dll". (TaskId:7)
              System.Net.Http.Formatting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL (TaskId:7)
              Microsoft.Office.Tools.Common.v4.0.Utilities, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL (TaskId:7)

 ...

      References which depend on "mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes" []. (TaskId:7)
          c:\code\Projects\myDocketForOutlook\packages\Microsoft.Bcl.1.1.9\lib\net40\System.IO.dll (TaskId:7)
            Project file item includes which caused reference "c:\code\Projects\myDocketForOutlook\packages\Microsoft.Bcl.1.1.9\lib\net40\System.IO.dll". (TaskId:7)
              System.IO (TaskId:7)
          c:\code\Projects\myDocketForOutlook\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Threading.Tasks.dll (TaskId:7)
            Project file item includes which caused reference "c:\code\Projects\myDocketForOutlook\packages\Microsoft.Bcl.1.1.9\lib\net40\System.Threading.Tasks.dll". (TaskId:7)
              Microsoft.Threading.Tasks (TaskId:7)

This pattern then repeats for System.Core, System, and System.Net

您需要删除SecurityTransparent属性从末尾开始AssemblyInfo.cs file.

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

为 Outlook 2010 构建插件时 FindRibbons 任务意外失败 的相关文章

随机推荐

  • 为什么“getcontext().prec = 2”实际上没有设置它,以便 Decimal() 的使用达到两位小数?

    我正在编写一个处理货币值的程序 因此我希望它使用小数输出到小数点后两位 不幸的是 这不起作用 并且输出的数字更长 我在网上查了一下 但到目前为止 似乎没有针对这个特定问题的任何答案 以防程序的其余部分发生某些情况 我仅在基本数字上使用它运行
  • 如何完全抑制 Git Clone 输出?

    我正在写一个 shell 脚本 其中我正在做 log var tmp git prod test pack log out Time clone usr bin time f e git clone quiet ssh id xxxxxxx
  • 如何使 ASP.NET MVC 控制器方法异步

    我正在向各种 MVC 控制器发起多个 ajax 调用 以加载页面的不同部分 然而 当它到达控制器时 似乎一次只有一个运行 我猜这是因为默认情况下 ASP Net MVC 控制器是同步的 我还测试了在两个浏览器选项卡上加载页面 第二个选项卡始
  • CredStore执行查询错误

    我在对应用程序后端进行 API 调用时遇到问题 每个连接现在都会提示 CredStore performQuery Error copying matching creds Error 25300 query atyp http class
  • facebook $facebook->getSignedRequest();错误

    我正在尝试将此脚本添加到我在 facebook 上的 iframe 应用程序中 但它似乎不起作用 signed request facebook gt getSignedRequest like status signed request
  • 在play框架中填充html下拉列表[重复]

    这个问题在这里已经有答案了 可能的重复 在 Play Framework 2 0 模板中使用选项帮助器 正常的html代码
  • 纯Python逆误差函数

    有没有纯Python逆误差函数的实现 我知道 SciPy 有scipy special erfinv 但这依赖于一些 C 扩展 我想要一个纯 python 实现 我尝试使用自己编写维基百科 and Wolfram引用 但当 arg gt 0
  • Windows Phone 8 中的弹出窗口

    我想显示一个弹出窗口 其中媒体元素作为一个控件 当用户单击按钮时 我必须显示此弹出窗口 当用户单击设备的后退按钮时 应关闭弹出窗口 请帮助我如何在 Windows Phone 8 应用程序中执行此操作 带 MediaElement 的弹出窗
  • Wordpress 中的 Google 地图 API Javascript

    希望大家能够回答这个问题 我认为这应该相对容易 但我似乎无法掌握它 如何在 WordPress 帖子 页面中加载 Google Maps API Javascript WordPress Codex 似乎建议在主题标题中引用您的 javas
  • 计算十六进制字符串的二进制补码校验和

    我有一个字符串 0AAE0000463130004144430000 我需要计算组成该字符串的十六进制字节的二进制补码校验和 上面示例字符串的公式为 对值求和 0A AE 00 00 46 31 30 00 41 44 43 00 00 2
  • multiprocessing.Queue 作为池工作程序的参数中止工作程序的执行

    我实际上发现很难相信我遇到了我遇到的问题 这似乎是 python 多处理模块中的一个大错误 无论如何 我遇到的问题是每当我通过将 multiprocessing Queue 作为参数传递给 multiprocessing Pool 工作线程
  • Python get 获取矩阵中具有 na 值的邻居的平均值

    我有非常大的矩阵 所以不想通过遍历每一行和每一列来求和 a 1 2 3 3 4 5 5 6 7 def neighbors i j a return a i j 1 a i j 1 len a 0 a i 1 j a i 1 len a j
  • 处理 Rails 3 中的 has_one 嵌套资源

    我有一个用户模型和一个关于模型 关于模型是一个页面 用户可以在其中获得有关他们的更多信息 由于其性质 将其放在单独的模型上而不是在用户模型中更合适 我希望能够将其路由到 username about 之类的内容 并让所有动词在该路径上工作
  • 如何检测 Angular 中的路由变化?

    我正在寻找检测我的路线变化AppComponent 此后 我将检查全局用户令牌以查看用户是否已登录 以便在用户未登录时可以重定向用户 在 Angular 2 中你可以subscribe Rx 事件 到 Router 实例 所以你可以做类似的
  • 在 matplotlib 中显示所有数据集的固定宽度条形

    我有以下数据集 我需要绘制 1 2 或所有数据集的条形图 当我绘制单个数据项的图表时 例如 xdata 0 and ydata 1000 xlabels first 条形图会缩放以占据整个绘图区域 如何将条形图宽度限制为 0 45 ydat
  • 使用 vb.net 在 SQL 中保存日期

    我使用以下代码保存文本框中的日期并使用日期选择器选择日期 If String IsNullOrEmpty DobTxt Text Then SQLCmd Parameters Add DOB SqlDbType Date Value DBN
  • 如何去掉 JavaScript 代码文本框中的 NaN?

    我正在尝试制作一个三角形缺腿计算器 首先你放一条腿 即斜边 然后你就会得到缺失的腿 但是 如果您先填写第二个框 它会显示 NaN 我知道它没那么重要 但是有没有办法摆脱它 让它显示 0 直到两个盒子都填满为止 这是代码
  • 将 matlab 矩阵转换为向量

    我想在预定义位置获取 Matlab 矩阵的元素向量 例如 我有以下内容 gt gt i 1 2 3 gt gt j 1 3 4 gt gt A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 A 1 2 3 4
  • Trello.Net 授权有效,但授权后无法访问数据

    我是新来的Trello Net并在授权方面遇到了一些困难 我了解请求 URL 然后要求用户浏览该 URL 以获取令牌的过程 第一个问题是我正在尝试编写一个无需任何 UI 即可自动运行的进程 因此 我必须使用硬编码令牌 该令牌是通过运行此代码
  • 为 Outlook 2010 构建插件时 FindRibbons 任务意外失败

    我们正在使用 VS2013 NET4 Microsoft Async 和 BCL Portability 来自 Nuget 构建 Outlook 2010 插件 并遇到类似于以下内容的构建错误这个问题 and 本次论坛讨论不幸的是 这些资源