add reference
-
Hi, everyone I don't have much knowledge about component or dll these kind of stuff. When I add a dll to my .Net project using add reference, some of them ok, some of them no. So what kind of dll or exe etc. can be added into .Net project by Add reference? And what's difference between the '.Net' tab and 'com' tab? Thanks in advance.
-
Hi, everyone I don't have much knowledge about component or dll these kind of stuff. When I add a dll to my .Net project using add reference, some of them ok, some of them no. So what kind of dll or exe etc. can be added into .Net project by Add reference? And what's difference between the '.Net' tab and 'com' tab? Thanks in advance.
The .NET tab lists .NET Assemblies. When you click the Browse... button, you must pick a .NET assembly which uses the same extension. These contain a different PE/COFF header bit and different executable segments. If you want a shell extension that visual identifies .NET Assemblies (only .dlls, though, but those are all you can reference using VS.NET) by using an overlay icon, download and install my Shell Extensions for .NET Assemblies[^]. The COM tab lists COM controls (ActiveX controls) and COM typelibs (design-time discovery information, which VB6 and below uses as well). When you click the Browse... button, you must pick a DLL or OCX that contains COM information. The Projects tab lists other projects in your solution. Use this when developing a multi-project solution to keep assembly references in sync with the current build configuration. You should read some books on .NET development. These concepts are necessary to understand if you want to start writing anything other than "Hello, world" applications.
Microsoft MVP, Visual C# My Articles