【发布时间】:2010-11-22 16:34:21
【问题描述】:
我的 site.master.. 中的条件编译标签似乎有问题。
基本上我有以下内容,但它在编译器中报告“无法解析符号调试”虽然我可以在调试和发布中运行......但最终输出总是打印我在发布或调试中的调试天气中的内容......
如前所述,编译器没有抱怨,但它在调试时有一些红线,并带有错误消息。我做错了什么?有人可以帮忙吗?
<%@ Master Language="C#" Inherits="System.Web.Mvc.ViewMasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title><asp:ContentPlaceHolder ID="TitleContent" runat="server" /></title>
<% #if DEBUG %>
<link href="../../Content/CSS/test.css" rel="stylesheet" type="text/css" />
<script src="../../Content/Scripts/jquery-1.3.2.js" type="text/javascript">
</script>
<% #else %>
<link href="../../Content/CSS/StyleSheetFinal.css" rel="stylesheet" type="text/css" />
<script src="../../Content/Scripts/JavascriptFinal.js" type="text/javascript"></script>
<% #endif %>
【问题讨论】:
标签: asp.net asp.net-mvc conditional-compilation