ASP.NET网站中的多文件c ++ / cli .net程序集 [英] multi-file c++/cli .net assembly in ASP.NET web site
问题描述
我有一个要在ASP.NET网站中使用的.NET程序集。程序集具有以下特征:
I have a .NET assembly that I want to use in an ASP.NET web site. The assembly has the following characteristics:
- 用C ++ / CLI编写
- 包含托管和非托管代码
- 已编译到x86 / x64平台(使用正确的特定于平台的程序集,因此这里不认为是问题)
- 编译为a链接多个本机dll的多文件程序集
- written in C++/CLI
- contains managed and unmanaged code
- compiled to x86/x64 platforms (using the correct platform-specific assembly, so it's not believed to be an issue here)
- compiled as a multi-file assembly linking several native dlls
当我尝试编译时,我收到一条错误消息:
When I try to compile I am getting an error stating:
无法加载文件或程序集'...'或其依赖项之一。试图加载格式错误的程序。
我可以在ASP.NET Web应用程序中使用库引用而不会出现问题。 (例如MVC),但是当我想在ASP.NET网站中使用它时,就会遇到此编译问题。这似乎与ASP.NET编译器特别相关。
I can use the library reference without problems in an ASP.NET web application (such as MVC), but when I want to use it in an ASP.NET web site, I get this compilation issue.It seems to be something specifically related to the ASP.NET compiler.
如何使用这种依赖关系来编译我的网站?
How do I get my website to compile with this dependency?
推荐答案
我看不到任何编译信息Visual Studio中的设置以指示一种或另一种方式...
I don't see any compilation settings within Visual Studio to indicate one way or another...
这篇关于ASP.NET网站中的多文件c ++ / cli .net程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!