Reputation: 1988
I use Jenkins, for building, unit testing, and publishing a windows application in c#. While executing test cases using nunit-console.exe, some of them needs Application.Executing Path for completing the test case. And it returns, nunit-console.exe path as result. Hence these test cases getting failed. ( What i need here is C# application executing path) How can i solve this issue.
Upvotes: 1
Views: 945
Reputation: 11070
Environment.CurrentDirectory
returns the current working directory.
Upvotes: 3