zoukankan      html  css  js  c++  java
  • “未能加载文件或程序集file:///E:/MoneySet.dll或它的某一个依赖项,试图加载格式不正确的程序,行203,位置5. 文件:MReportSet.resx”,

    http://bbs.csdn.net/topics/390334265

    1.右键卸载项目
    2.右键选择编辑工程文件,在打开的文件的最后一行</project>之前加以下内容:
     

    <PropertyGroup>     <ForceResGen32Bit Condition="'$(MSBuildToolsVersion)'=='4.0' And '$(PROCESSOR_ARCHITEW6432)'!='' And '$(TargetingClr2Framework)'=='true' And '$(PlatformTarget)'=='x86'">true</ForceResGen32Bit>

      </PropertyGroup>   <Target Name="BeforeResGen" Condition="'$(ForceResGen32Bit)' == 'true'">     <PropertyGroup>       <ResGenSdkToolsPath>$(IntermediateOutputPath)ResGenForced32Bit</ResGenSdkToolsPath>     </PropertyGroup>     <!-- Copy resgen.exe to intermediate working directory for UAC settings -->     <Copy SourceFiles="$(TargetFrameworkSDKToolsDirectory)ResGen.exe"     DestinationFiles="$(ResGenSdkToolsPath)ResGen.exe" />

        <!-- corflags.exe resgen.exe /32BIT+ /Force-->     <Exec WorkingDirectory="$(ResGenSdkToolsPath)"     Command="&quot;$(TargetFrameworkSDKToolsDirectory)corflags.exe&quot; ResGen.exe /32BIT+ /Force" />

        <!-- GenerateResource Task parameters  Using the non-64bit Tracker.exe and indicate resgen.exe has been forced to x86 -->     <PropertyGroup>       <ResGenTrackerSdkPath>$(SDK40ToolsPath)</ResGenTrackerSdkPath>       <ResGenToolArchitecture>Managed32Bit</ResGenToolArchitecture>       <CacheTargetFrameworkSDKToolsDirectory>$(TargetFrameworkSDKToolsDirectory)</CacheTargetFrameworkSDKToolsDirectory>       <TargetFrameworkSDKToolsDirectory>$(ResGenSdkToolsPath)</TargetFrameworkSDKToolsDirectory>     </PropertyGroup>   </Target>   <Target Name="AfterResGen" Condition="'$(ForceResGen32Bit)' == 'true'">     <PropertyGroup>       <TargetFrameworkSDKToolsDirectory>$(CacheTargetFrameworkSDKToolsDirectory)</TargetFrameworkSDKToolsDirectory>     </PropertyGroup>

        <RemoveDir Directories="$(ResGenSdkToolsPath)" Condition="Exists('$(ResGenSdkToolsPath)')" />   </Target>



     3.右键重新加载项目,问题解决。本机实验通过

  • 相关阅读:
    SQL查询设计方案
    [导入]mootools框架【十】mootools深层探讨
    关于阅读技术类图书的思考
    [导入]mootools框架【三】Array篇: 主要方法测试实例
    Google Chrome隐藏的其他功能
    2010年就业最吃香的五大专业详情揭秘
    [导入]mootools框架【四】Function篇: 主要方法解析
    [导入]mootools框架【九】工具类Hash和Color
    [导入]mootools框架【八】Dom篇: Css查询支持之Dom.js
    分页控件入门
  • 原文地址:https://www.cnblogs.com/mmnyjq/p/3713607.html
Copyright © 2011-2022 走看看