Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1260467
  • 博文数量: 135
  • 博客积分: 10588
  • 博客等级: 上将
  • 技术积分: 1325
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-18 11:12
文章分类

全部博文(135)

文章存档

2013年(6)

2012年(3)

2011年(11)

2010年(7)

2009年(14)

2008年(6)

2007年(42)

2006年(46)

分类: 嵌入式

2011-04-06 17:20:25

AE的程序拷贝到64位Win7下编译的时候老是通不过,总是提示类似的错误:
"Could not load file or assembly 'file:///C:/Program Files (x86)/ArcGIS/DeveloperKit10.0/DotNet/ESRI.ArcGIS.3DAnalyst.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Line 162, position 5. C:\temp\Projects\MyArcGISControlApp\Form1.resx"
 
后来参考ESRI的文章,
才搞清楚,只要在工程文件csproj中,前面加入以下内容,就可以了。


true




$(IntermediateOutputPath)ResGenForced32Bit\


DestinationFiles="$(ResGenSdkToolsPath)ResGen.exe" />


Command=""$(TargetFrameworkSDKToolsDirectory)corflags.exe" ResGen.exe /32BIT+ /Force" />



$(SDK40ToolsPath)
Managed32Bit
$(TargetFrameworkSDKToolsDirectory)
$(ResGenSdkToolsPath)




$(CacheTargetFrameworkSDKToolsDirectory)



阅读(3350) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~