Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to change type of reference from NET to COM

Posted on 2012-03-20
3
Medium Priority
?
473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 1500 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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

604 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