为什么asp.net网站项目不引用x64 dll库? [英] why does asp.net website project doesnot refer to x64 dll library?

查看:187
本文介绍了为什么asp.net网站项目不引用x64 dll库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net网站项目中有64位dll引用。它不会构建因为我从该dll引用类。我尝试添加使用命名空间但仍然没有运行,它在complietime显示错误。请帮助我。

I have a 64 bit dll reference in an asp.net website project. It doesnot build because I am referencing class from that dll. I have tried adding using namespace but still it does not run, it shows error at complietime.Please help me out.

推荐答案

将程序集定位到以下是一个坏主意除AnyCPU之外的任何指令集架构。但有时,你必须这样做。仅当其中一个依赖项是本机(非托管)模块时才需要这样做。在支持匹配的本地系统上,它可以被认为是可以接受的。



但不适用于ASP.NET,除非你有专门的主机并解决高度专业化的问题。几乎在所有情况下,您都不应该假设任何具体的指令集架构。如果不匹配,您的解决方案将无效。



-SA
It's a bad idea to target your assemblies to any instruction-set architecture except "AnyCPU". But sometimes, you have to do that. This is only needed if one of the dependencies is a native (non-managed) module. On the local system supporting matching it can be considered acceptable.

But not for ASP.NET, unless you have a dedicated host and solve highly specialized problems. In nearly all cases, you should not assume any concrete instruction-set architecture. In case of mismatch, your solution won't work.

—SA


这篇关于为什么asp.net网站项目不引用x64 dll库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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