How to get root folder of ASP.NET application

前端 未结 4 2139
野趣味
野趣味 2021-01-03 09:00

I am trying to get the root folder of the application. I have used the following code, but this gives the bin folder, but what I need is the root folder of the

4条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-03 09:57

    If you are trying to modify the solution folder, it may make more sense to create a build script than a runtime application. From those scripts, you have easy access to the solution structure.

    http://visualstudiohacks.com/general/customize-your-project-build-process/

提交回复
热议问题