c# - Acessing currently opened solution in a vsix project -


i want access path open solution in visual studio vsix project. how can that?

this thread tells if solution open or not gives nothing path of opened solution

i use this:

    public string getinitialfolder(dte dte)     {         if (!dte.solution.isopen)             return null;         return system.io.path.getdirectoryname(dte.solution.fullname);     } 

but expect error, cannot return path!


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -