VisualStudio中C#64,为什么AddReference选项,.NET选项卡点86 DLL而不是64位? [英] VisualStudio C# x64, why AddReference option, .NET tab points to x86 DLL instead of x64?

查看:567
本文介绍了VisualStudio中C#64,为什么AddReference选项,.NET选项卡点86 DLL而不是64位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个64应用程序。

I want to create an x64 application.

当我想在标签.NET我只看到86的DLL例如添加引用 System.Data这窗口AddReference,我需要64位版本。

When I want to add a reference for example to system.data in window AddReference under tab .NET I see only x86 DLLs, and I need 64 bit versions.

我有的Windows Server 2008 64位与Visual Studio 2008。

I have Windows Server 2008 x64 with Visual Studio 2008.

我创建了一个项目,我在配置管理器设置64。

I created a project and I set x64 under Configuration Manager.

我能做些什么来强制Visual Studio的指向 正确的DLL(从 C:\ WINDOWS \ Microsoft.NET \ Framework64 而不是 的C:\ WINDOWS \ Microsoft.NET \框架

What can I do to force Visual Studio to point to the correct DLLs (from C:\WINDOWS\Microsoft.NET\Framework64 instead of C:\WINDOWS\Microsoft.NET\Framework)?

推荐答案

运行到同样的问题,是的,我也认为这是从微软的错误。你会认为无论是基于x64或x86 sgen.exe可以处理MSIL组件,尤其是当你必须引用架构组件。

Running into the same problem, and yes I also consider it a bug from MS. You'd think either the x64 or x86 sgen.exe could handle msil assemblies, especially when you have to reference framework assemblies.

我会preFER建设MSIL组件自己,但有一个本机内置的第三方组件扔到我的组合。当项目尝试用86 sgen.exe生成序列化程序集,它抱怨说,第三方组件是格式不正确。

I would prefer building msil assemblies myself, but have a native-built 3rd party assembly tossed into my mix. When the project tries to generate the serialization assemblies using the x86 sgen.exe, it complains that the 3rd party assembly is "the wrong format."

在我使用的x64 sgen.exe,它抱怨System.Data这是格式错误。但我没有指着Framework64版本中的.csproj文件的选项。

When I use the x64 sgen.exe, it complains that System.Data is "the wrong format". But I don't have the option of pointing at the Framework64 version in the .csproj file.

这篇关于VisualStudio中C#64,为什么AddReference选项,.NET选项卡点86 DLL而不是64位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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