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)
阅读(3414) | 评论(0) | 转发(0) |