site.masterで直接条件付きコンパイルタグに問題があるようです。
基本的に私は次のものを持っていますが、DEBUGとRELEASEで実行できますが、コンパイラで「シンボルDEBUGを解決できません」と報告します...しかし、最終出力は常にDEBUG天気で何を出力しますか?私はRELEASEまたはDEBUGにいます...
そして、前述のように、コンパイラは文句を言いませんが、デバッグ中の小さな赤い線がエラーmsgで表示されます。何が間違っているのでしょうか。誰か助けてもらえますか?
<%@ 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 %>