本文介绍了在IIS中启用代码约定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在IIS环境中尝试代码合同,理想情况下我希望在App_Code目录中按需编译代码。 但是,我不确定在web.config文件的编译
节点中启用各种代码协定选项的正确方法。 这有可能吗? 或者我是否需要通过vcproj构建库并使用dll?

I'm experimenting with code contracts in an IIS environment, and ideally I'd like the code to be compiled on-demand in the App_Code directory.  However, I'm not sure about the right way to enable the various code contract options in the compilation node in the web.config file.  Is this even possible?  Or will I need to build the library via the vcproj and consume the dll?

推荐答案


这篇关于在IIS中启用代码约定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 00:20
查看更多