where is microsoft.visualbasic.dll for .net 3.5?

时间秒杀一切 提交于 2019-12-23 15:51:10

问题


I am building a Sharepoint webpart, and I need to use the .net 3.5 microsoft.visualbasic.dll reference because Sharepoint uses .net 3.5.

Where can I find it?

I tried looking here, but can't find it

C:\Windows\Microsoft.NET\Framework\v3.5

I tried the .net 4.0 dll but the project didn't let me import it.


回答1:


It is not a v3.5 specific assembly, it is part of the core .NET assemblies. So you'll find it in c:\windows\microsoft.net\framework\v2.0.50727, along with the other core assemblies like System.dll and mscorlib.dll. v2.0.50727 is the runtime version of .NET framework versions 2.0 through 3.5 SP1, they all use the exact same CLR and core assemblies.

Different in .NET 4 and up, the reference assemblies are stored in a different home directory. And they are internally different. No longer a copy of the assembly in the GAC, they only contain metadata, no IL. You'll find it in c:\program files\reference assemblies\microsoft\framework\.netframework\v4.0




回答2:


As far as I understand, you do not need to reference any visualbasic.dll explicitly if you go into the compile options of your project and set target framework to .net 3.5



来源:https://stackoverflow.com/questions/11937944/where-is-microsoft-visualbasic-dll-for-net-3-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!