* fixed compilation error in Flags.aspx on mono

* modified debug/release config transformers
This commit is contained in:
tmont 2011-03-05 05:13:50 +00:00
parent 1fde4e819a
commit bf16553b76
4 changed files with 35 additions and 58 deletions

View File

@ -1,4 +1,4 @@
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<IEnumerable<VideoGameQuotes.Api.Quote>>" MasterPageFile="~/Views/Shared/Site.Master" %>
<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<System.Collections.Generic.IEnumerable<VideoGameQuotes.Api.Quote>>" MasterPageFile="~/Views/Shared/Site.Master" %>
<asp:Content runat="server" ID="Title" ContentPlaceHolderID="TitleContent">Quote Flags</asp:Content>
<asp:Content runat="server" ID="Main" ContentPlaceHolderID="MainContent">
<h2>Flagged Quotes</h2>

View File

@ -3,28 +3,4 @@
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

View File

@ -3,29 +3,26 @@
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an atrribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
</system.web>
<vgquotes>
<add xdt:Locator="Match(key)" xdt:Transform="Replace" key="luceneIndexDirectory" value="/var/www/sites/vgquotes.com/lucene_index"/>
</vgquotes>
<log4net>
<appender name="RollingFileAppender">
<file value="/var/log/nginx/vgquotes.com.log" xdt:Transform="SetAttributes(value)"/>
</appender>
<appender name="TelnetAppender" xdt:Locator="Match(name)" xdt:Transform="Remove"/>
<logger name="vgquotes" xdt:Locator="Match(name)" xdt:Transform="Replace">
<level value="INFO"/>
<appender-ref ref="RollingFileAppender" />
</logger>
<logger name="NHibernate.SQL" xdt:Locator="Match(name)" xdt:Transform="Remove"/>
</log4net>
</configuration>

View File

@ -24,12 +24,6 @@
</vgquotes>
<log4net>
<appender name="DebugAppender" type="log4net.Appender.DebugAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="[%-5level] %message%newline" />
</layout>
</appender>
<appender name="TelnetAppender" type="log4net.Appender.TelnetAppender">
<port value="23" />
<layout type="log4net.Layout.PatternLayout">
@ -37,15 +31,25 @@
</layout>
</appender>
<appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
<file value="c:\users\tmont\code\VideoGameQuotes\vgquotes.log" />
<appendToFile value="true" />
<rollingStyle value="Size" />
<maxSizeRollBackups value="10" />
<maximumFileSize value="100KB" />
<staticLogFileName value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%date [%-5level] %message%newline" />
</layout>
</appender>
<logger name="vgquotes">
<level value="ALL"/>
<!--<appender-ref ref="DebugAppender" />-->
<appender-ref ref="TelnetAppender" />
</logger>
<logger name="NHibernate.SQL">
<level value="ALL"/>
<!--<appender-ref ref="DebugAppender" />-->
<appender-ref ref="TelnetAppender" />
</logger>
</log4net>