Roo
Roo

Reputation: 427

unable to find the namespace of a third party api

I have received a .dll file from a partner firm with an API that will be used for database logging. I have added it to the references and can see it in the Solution Explorer. The documentation provided gave me a code snippet which references the file with a different namespace than the file name. I am using Visual Studio 2013 Express.

using com.XXXXX.XXX.microsites.api;

When I want to use the EntityFramework, it is simply the name of the reference.

using Microsoft.AspNet.Identity.EntityFramework;

Upvotes: 0

Views: 121

Answers (2)

Rahul
Rahul

Reputation: 77896

If you added the dll reference in your solution then try opening the dll in object browser and see if you see the namespaces listed there and then use the one needed.

Upvotes: 1

Corporalis
Corporalis

Reputation: 1062

I would personally use dotPeek (https://www.jetbrains.com/decompiler/) to decompile the assembly and see what the defined namespaces are. Not sure if there's anything build in to Visual Studio.

Upvotes: 1

Related Questions