Visual studio addin - finding current solution folder path

前端 未结 3 981
终归单人心
终归单人心 2021-01-12 02:24

I have an add-in loaded, and a solution loaded, how would I find the folder path of that solution programmatically in C# in my addin?

3条回答
  •  离开以前
    2021-01-12 02:54

    you can use this code:

    string solutionpath = Directory.GetParent(Application.ExecutablePath).Parent.Parent.Parent.FullName;
    

    regards

提交回复
热议问题