Project (bin) folder path at compile time?

后端 未结 3 1277
暗喜
暗喜 2021-01-01 06:01

Is there a way to find out the project path at compile time?

I want to create a unit test that tests if the configurartion in the default web.config (the one in the

3条回答
  •  耶瑟儿~
    2021-01-01 06:08

    To improve the solution slightly, instead of using the Post Build Event Command Line, you can run the command as an MSbuild Exec Task in the BeforeBuild Target of the project.

提交回复
热议问题