I currently have a 32 bit dll that was created with Visual Studio 2003 in C++ using Managed Extensions. I'm now trying to compile a 64 bit version without having to upgrade to C++/CLI. I've been following the tutorial at this location. I'm getting the following error:
我目前有一个使用Managed Extensions在C ++中使用Visual Studio 2003创建的32位dll。我现在正在尝试编译64位版本而无需升级到C ++ / CLI。我一直在这个地方学习教程。我收到以下错误:
fatal error C1197: cannot reference 'c:\windows\microsoft.net\framework\v1.1.4322\mscorlib.dll' as the progam has already referenced 'c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll'
致命错误C1197:无法引用'c:\ windows \ microsoft.net \ framework \ v1.1.4322 \ mscorlib.dll',因为progam已经引用了'c:\ windows \ microsoft.net \ framework \ v2.0.50727 \ mscorlib。 DLL”
I can't figure out what is referencing the .NET 2.0 version of the dll.
我无法弄清楚什么是引用dll的.NET 2.0版本。
2 个解决方案
#1
1
Do you manually call the .dll file in the code? Like in this?
你手动调用代码中的.dll文件吗?喜欢这个?
#using "C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
If so, you can change this line to just:
如果是这样,您可以将此行更改为:
#using "mscorlib.dll"
#2
0
Are you including a library that links to a different version of mscorlib?
您是否包含链接到不同版本的mscorlib的库?
Are you specifying both the /clr option and doing a #using "mscorlib.dll" ?
您是指定/ clr选项还是执行#using“mscorlib.dll”?
#1
1
Do you manually call the .dll file in the code? Like in this?
你手动调用代码中的.dll文件吗?喜欢这个?
#using "C:\Windows\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll
If so, you can change this line to just:
如果是这样,您可以将此行更改为:
#using "mscorlib.dll"
#2
0
Are you including a library that links to a different version of mscorlib?
您是否包含链接到不同版本的mscorlib的库?
Are you specifying both the /clr option and doing a #using "mscorlib.dll" ?
您是指定/ clr选项还是执行#using“mscorlib.dll”?