Why AppDomain.CurrentDomain.BaseDirectory not contains “bin” in asp.net app?

后端 未结 4 787
天命终不由人
天命终不由人 2020-11-28 11:58

I have a web project like:

namespace Web
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, Event         


        
4条回答
  •  孤独总比滥情好
    2020-11-28 12:34

    If you use AppDomain.CurrentDomain.SetupInformation.PrivateBinPath instead of BaseDirectory, then you should get the correct path.

提交回复
热议问题