mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Removed obsolete build step in Orchard.Azure.Web. Added Web.config transformation in Orchard.Azure.Web.
This commit is contained in:

committed by
Sebastien Ros

parent
e094066194
commit
c379274e73
@@ -1,44 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
|
||||
<!-- Initialization -->
|
||||
|
||||
<PropertyGroup>
|
||||
<OrchardWebFolder>$(MSBuildProjectDirectory)\..\..\Orchard.Web</OrchardWebFolder>
|
||||
<DestinationFolder>$(MSBuildProjectDirectory)</DestinationFolder>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Excluded Include="$(OrchardWebFolder)\**\bin\**\*;$(OrchardWebFolder)\**\obj\**\*;" />
|
||||
|
||||
<CoreFiles Include="$(OrchardWebFolder)\Core\**\*" Exclude="@(Excluded)" />
|
||||
<ModulesFiles Include="$(OrchardWebFolder)\Modules\**\*" Exclude="@(Excluded)" />
|
||||
<ThemesFiles Include="$(OrchardWebFolder)\Themes\**\*" Exclude="@(Excluded)" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- Coordinating Targets -->
|
||||
|
||||
<Target Name="Build">
|
||||
<CallTarget Targets="Copyfiles"/>
|
||||
</Target>
|
||||
|
||||
<Target Name="Clean">
|
||||
<RemoveDir Directories="$(DestinationFolder)\Core;$(DestinationFolder)\Modules;$(DestinationFolder)\Themes" ContinueOnError="true" />
|
||||
</Target>
|
||||
|
||||
<!-- Work Targets -->
|
||||
|
||||
<Target Name ="CopyFiles">
|
||||
<Message Text="Copying Core, Modules and Themes folders"/>
|
||||
<Message Text=" Source: $(OrchardWebFolder)"/>
|
||||
<Message Text=" Destination: $(DestinationFolder)"/>
|
||||
|
||||
<!-- Note: We use "SkipUnchangedFiles" and "UseHardlinksIfPossible" to try to make things as fast as possible -->
|
||||
<Copy SourceFiles="@(CoreFiles)" DestinationFolder="$(DestinationFolder)\Core\%(RecursiveDir)" SkipUnchangedFiles="True" UseHardlinksIfPossible="True"/>
|
||||
<Copy SourceFiles="@(ModulesFiles)" DestinationFolder="$(DestinationFolder)\Modules\%(RecursiveDir)" SkipUnchangedFiles="True" UseHardlinksIfPossible="True"/>
|
||||
<Copy SourceFiles="@(ThemesFiles)" DestinationFolder="$(DestinationFolder)\Themes\%(RecursiveDir)" SkipUnchangedFiles="True" UseHardlinksIfPossible="True"/>
|
||||
|
||||
<Message Text="Done copying files."/>
|
||||
</Target>
|
||||
|
||||
</Project>
|
@@ -182,7 +182,14 @@
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<ItemGroup />
|
||||
<ItemGroup>
|
||||
<None Include="Web.Debug.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
<None Include="Web.Release.config">
|
||||
<DependentUpon>Web.config</DependentUpon>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\..\Orchard.Web\Core\Orchard.Core.csproj">
|
||||
<Project>{9916839C-39FC-4CEB-A5AF-89CA7E87119F}</Project>
|
||||
@@ -493,9 +500,8 @@
|
||||
<Target Name="AfterBuildCompiler" Condition="'$(MvcBuildViews)'=='true'">
|
||||
<AspNetCompiler VirtualPath="temp" PhysicalPath="$(ProjectDir)" />
|
||||
</Target>
|
||||
<Target Name="AfterBuild" DependsOnTargets="AfterBuildCompiler">
|
||||
<MSBuild Projects="CopyModulesAndThemes.proj" Targets="Build" />
|
||||
</Target>
|
||||
<!--Target Name="AfterBuild" DependsOnTargets="AfterBuildCompiler">
|
||||
</Target-->
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}">
|
||||
|
30
src/Orchard.Azure/Orchard.Azure.Web/Web.Debug.config
Normal file
30
src/Orchard.Azure/Orchard.Azure.Web/Web.Debug.config
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 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 attribute "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>
|
31
src/Orchard.Azure/Orchard.Azure.Web/Web.Release.config
Normal file
31
src/Orchard.Azure/Orchard.Azure.Web/Web.Release.config
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
|
||||
<!-- 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 attribute "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>
|
||||
</configuration>
|
Reference in New Issue
Block a user