Hi,
I want to know that What benefit do you get from using a Primary Interop Assembly (PIA)?
Primary Interop Assembly (PIA)
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Apr 11, 2012, 10:05 PM EDT
http://msdn.microsoft.com/en-us/library/aa302338.aspx
VulpesRank #55 · 29.2K reputationPosted Apr 12, 2012, 3:08 AM EDT
If you produce your own interop assembly using tlbimp.exe then it will be incompatible with an assembly produced by another developer because the types will not be regarded as being equivalent
This is no longer a problem from .NET 4.0 onwards which now supports type equivalence for linked interop types. So, if two assemblies each link to an interop type, those types are regarded as equivalent provided that they represent the same underlying COM type, no matter how they were generated. This, of course, means that PIAs are no longer needed.