I have two C# projects Proj1
and Proj2
, in Visual Studio under a solution.
Proj2
makes use of method meth1
in a.cs
in Proj1
.
In meth1
,
public string meth1(){
return Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;
}
It returns the full path of Proj2
when I am calling the method from Proj2
. Is there a way to let it getting the path of Proj1
regardless where the method is call?