2012-07-09 96 views

回答

0

解決方案資源管理> WebApplicationProject(Web應用程序的名稱)>屬性>構建:

enter image description here

enter image description here

+0

哪裏是** Web應用程序**? – 2012-07-09 14:37:14

+0

我看到您的編輯。我只是用Visual Studio的屏幕截圖更新了我的問題,而不是來回轉移。使用* Windows截圖工具*指向我的屏幕截圖中的** Web應用程序**並添加到您的答案。請:) – 2012-07-09 14:43:32

+0

好吧,你已經使用網站,而不是ASP.Net Web應用程序項目。您應該使用「ASP.Net Web應用程序項目」而不是網站。微軟建議使用「ASP.Net Web應用程序項目」 – 2012-07-09 14:50:44

0

您是否嘗試過使用compiler v元素的compilerOptions屬性web.config?像這樣:

<system.codedom> 
    <compilers> 
     <compiler language="c#;cs;csharp" 
      extension=".cs" 
      warningLevel="4" 
      type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" 
      compilerOptions="/define:TRACE"> 
      <providerOption name="CompilerVersion" value="v3.5"/> 
      <providerOption name="WarnAsError" value="false"/> 
     </compiler> 
.... 

應該做的伎倆我想......

相關問題