WCF .SVC调试= QUOT;真"当发布编译时忽略? [英] WCF .SVC Debug="true" ignored when when release compiling?

查看:144
本文介绍了WCF .SVC调试= QUOT;真"当发布编译时忽略?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在默认情况下一个.SVC文件中包含调试=真,如果这是你的编译版本或忽视的是它仍然使用调试符号编译,我想知道?

 <%@ ServiceHost的语言=C#调试=真正的服务=WebPages.Interfaces.examplecodeBehind =example.svc.cs厂= System.ServiceModel.Activati​​on.WebServiceHostFactory%GT;


解决方案

调试=真 @ServiceHost 属性指令只适用,如果你正在写你的服务为在线 code在.svc文件,或实施服务 APP_ code 文件夹中。的(它不会似乎已经汇编成集,并把它变成\\ bin目录中适用。)

By default a .SVC file contains Debug="true", I was wondering if this is ignored if you compile for release or is it still compiled with debug symbols?

Ex.

<%@ ServiceHost Language="C#" Debug="true" Service="WebPages.Interfaces.example" CodeBehind="example.svc.cs" Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>

解决方案

Debug=true attribute in @ServiceHost directive only apply, if you are writing your service as inline code in .svc file, or implementing service in "App_Code" folder. (It won't apply if already compiled into assembly and placed it into \bin directory.)

这篇关于WCF .SVC调试= QUOT;真&QUOT;当发布编译时忽略?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆