美文网首页
.Net Core Debug 与 Release 打包

.Net Core Debug 与 Release 打包

作者: Rinaloving | 来源:发表于2022-03-22 09:34 被阅读0次
    #if DEBUG
                       .UseUrls(AppConfigurtaion.GetSecondSection("Api", "api").ToString())//给程序启动设置url地址
                       .UseKestrel()//使用Kestrel内部服务器
                       .UseStartup<Startup>();
    #elif RELEASE
                        .UseStartup<Startup>().UseKestrel();
    #endif
    
    

    相关文章

      网友评论

          本文标题:.Net Core Debug 与 Release 打包

          本文链接:https://www.haomeiwen.com/subject/otxfjrtx.html