【问题标题】:Error:Cannot find type System.MarshalByRefObject in module CommonLanguageRuntimeLibrary in windows universal platform aoo for windows 10错误:在 windows 10 通用平台 aoo 中的模块 CommonLanguageRuntimeLibrary 中找不到类型 System.MarshalByRefObject
【发布时间】:2016-11-19 10:30:09
【问题描述】:

您好,我正在此应用程序中开发 Windows 通用平台应用程序 当我调试我的 windows 通用项目时发生错误,这个错误是自动出现的,所以有人建议我如何解决这个错误?

错误:- 在模块 CommonLanguageRuntimeLibrary 中找不到类型 System.MarshalByRefObject

所以建议我如何解决这个错误。

【问题讨论】:

  • 您将 Web 编程与 windows-10 和 aoo 应用程序混淆了——这两者是两种不同的动物。

标签: c# asp.net xaml frameworks windows-10


【解决方案1】:

我在从 Windows 10 通用应用项目中删除 System.Drawing 引用时解决了此错误。

如搜索 Ctrl+F 所有关键字 system.drawling 未在解决方案中找到。因为这个引用只添加到项目中而不是在使用中。所以检查项目文件 .csproj 找到它。并删除此引用。

 <ItemGroup>
    <Reference Include="DocumentFormat.OpenXml">
      <HintPath>..\JOIN8POS.Website\SharedDLL\DocumentFormat.OpenXml.dll</HintPath>
    </Reference>
    <Reference Include="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.6\System.Drawing.dll</HintPath>
    </Reference>
  </ItemGroup>

并保存 .csproj 文件并重新加载所有文件。

【讨论】:

  • 刚刚遇到同样的错误,引用是自动导入的,所以我需要一些时间才能看到这篇文章。 Ty 为你的帖子 :)
  • 是的,你可以告诉我
猜你喜欢
  • 1970-01-01
  • 2018-08-30
  • 2018-11-29
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-03-20
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多