Solved

How to change type of reference from NET to COM

Posted on 2012-03-20
3
453 Views
Last Modified: 2012-08-13
Hi X-perts,

I have a reference in my old project to DLL, which is supposed to be referenced as COM type. It works fine, but I cannot delete - update it in my new migrated project, because by default it always assigns NET type when I point to that file.

I cannot remember how I managed to register it as COM (it was two years ago).

Question: how to switch the reference type from NET to COM for external refeence libraries?

Thanks
0
Comment
Question by:orgrau9
3 Comments
 
LVL 20

Expert Comment

by:BuggyCoder
ID: 37745711
Remove the reference, Add Reference, In COM Tab select your new component and you are good to go...
0
 

Author Comment

by:orgrau9
ID: 37745722
It is not listed in the COM section. I only can add it by browsing to the file. But in that case it is registered as NET type.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 37765325
If you open the project file in notepad, a normal reference looks like

    <Reference Include="Interop.CSEXWBDLMANLib, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">

and a COM reference looks like

<COMReference Include="AcrobatAccessLib">
      <Guid>{C523F390-9C83-11D3-9094-00104BD0D535}</Guid>
      <VersionMajor>3</VersionMajor>
      <VersionMinor>0</VersionMinor>
      <Lcid>0</Lcid>
      <WrapperTool>tlbimp</WrapperTool>
      <Isolated>False</Isolated>
      <EmbedInteropTypes>True</EmbedInteropTypes>
    </COMReference>


Would you be able to make that change manually?

If you register the assembly using regsvr32, it would appear on COM tab.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Hangfire / asp.net sample 3 28
Check if number is currency 15 29
String manipulation 15 49
What .NET website keeps me current? 9 32
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now