.Net 项目需要在 x64 和 x86 下构建如何? [英] How about .Net project needs to build under both x64 and x86?

查看:37
本文介绍了.Net 项目需要在 x64 和 x86 下构建如何?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的小应用程序做了两件看起来有冲突的事情:

My small application does 2 things seem conflict:

1) 使用 VFPOLEDB.1 与 Visual Foxpro 数据库对话以获取一些数据 --> 它需要 x86 或任何 CPU"中的应用程序构建器

1) Use VFPOLEDB.1 to talk to Visual Foxpro database to get some data --> It require app builder in x86 or 'Any CPU'

2) 但是还有另一个函数可以调用 powershell 脚本来访问服务器的 IIS,它需要在 x64 中构建项目.(或者当 .Net 启动 powershell 时,它会混淆哪个版本,并会抛出一些 COM 对象类未注册错误)

2) However there is another function to call a powershell script to access IIS of the server and it requires project build in x64. (or when .Net launch powershell, it gets confused about which version and will throw some COM object class not register error)

我该如何处理这个冲突问题?

How can I handle this conflict issue?

推荐答案

我不完全确定,但也许您可以通过拆分项目来做到这一点.一个项目是 x86 并调用 FoxPro,另一个是 x64 并调用 Powershell,第三个是调用这两个的主项目.

I'm not entirely sure, but perhaps you can do this by splitting your project. One project is x86 and does the FoxPro call, the other one is x64 and calls Powershell, a third one would be the main project that calls the two.

这篇关于.Net 项目需要在 x64 和 x86 下构建如何?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆