Medium Trust on by default in debug web.configs
Don't overwrite root web.config on each build if already exists Should make F5-debug a lot easier
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
-->
|
||||
<system.web>
|
||||
<compilation debug="true" xdt:Transform="SetAttributes(debug)" />
|
||||
<trust level="Medium" xdt:Transform="Remove" />
|
||||
<trust level="Medium" originUrl=".*" xdt:Transform="Insert" />
|
||||
<!--
|
||||
In the example below, the "Replace" transform will replace the entire
|
||||
<customErrors> section of your web.config file.
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
|
||||
<system.web>
|
||||
<compilation xdt:Transform="RemoveAttributes(debug)" />
|
||||
<trust xdt:Transform="Remove"/>
|
||||
<trace enabled="false" xdt:Transform="SetAttributes(enabled)" />
|
||||
<customErrors mode="RemoteOnly" xdt:Transform="SetAttributes(mode)">
|
||||
</customErrors>
|
||||
|
||||
@@ -75,6 +75,7 @@
|
||||
</connectionStrings>
|
||||
<system.web>
|
||||
<customErrors mode="RemoteOnly" />
|
||||
<trust level="Medium" originUrl=".*"/>
|
||||
<trace enabled="true" requestLimit="10" pageOutput="false" traceMode="SortByTime" localOnly="true" />
|
||||
<sessionState mode="InProc" stateConnectionString="tcpip=127.0.0.1:42424" sqlConnectionString="data source=127.0.0.1;Trusted_Connection=yes" cookieless="false" timeout="20" />
|
||||
<globalization requestEncoding="UTF-8" responseEncoding="UTF-8" />
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
OverwriteReadOnlyFiles="true"
|
||||
SkipUnchangedFiles="false"
|
||||
Condition="!Exists('$(OutputFileName)')"
|
||||
/>
|
||||
/>
|
||||
</Target>
|
||||
|
||||
<Target Name="CustomTarget" AfterTargets="CopyWebConfig">
|
||||
@@ -86,7 +86,8 @@
|
||||
<Message Text="$(OriginalFileName)" Importance="high" />
|
||||
<Message Text="$(OutputFileName)" Importance="high" />
|
||||
|
||||
<TransformXml Source="$(OriginalFileName)" Transform="$(WebConfigSource)" Destination="$(OutputFileName)" />
|
||||
<TransformXml Condition="$(BuildingInsideVisualStudio) == ''" Source="$(OriginalFileName)" Transform="$(WebConfigSource)" Destination="$(OutputFileName)" />
|
||||
<TransformXml Condition="$(BuildingInsideVisualStudio) == 'true'" Source="$(OutputFileName)" Transform="$(WebConfigSource)" Destination="$(OutputFileName)" />
|
||||
</Target>
|
||||
|
||||
<Target Name="ResetConfigFiles" Condition="$(ProjDir) != $(ProjOutputDir)" BeforeTargets="Build;Rebuild" Inputs="@(ConfigFiles)" Outputs="%(Identity).Dummy">
|
||||
@@ -105,7 +106,7 @@
|
||||
OverwriteReadOnlyFiles="true"
|
||||
SkipUnchangedFiles="false"
|
||||
Condition="Exists('$(ModifiedFileName)')"/>
|
||||
|
||||
|
||||
</Target>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user