Привет при запуске my unit test Я хочу получить каталог, в котором работает мой проект, для извлечения файла.
Скажем, у меня есть тестовый проект с именем MyProject. Тест, который я запускаю:
AppDomain.CurrentDomain.SetupInformation.ApplicationBase
и я получаю "C:\\Source\\MyProject.Test\\bin\\Debug"
.
Это близко к тому, что мне нужно. Мне не нужна часть bin\\Debug
.
Кто-нибудь знает, как вместо этого я мог бы получить "C:\\Source\\MyProject.Test\\"
?