Skip to content

Commit

Permalink
Added a condition that can be passed via MSBuild to skip ILMerging of…
Browse files Browse the repository at this point in the history
… assemblies, as follows:

msbuild /p:MergeReferences=False

This option is turned ON by default.

git-svn-id: http://moq.googlecode.com/svn/trunk@605 b33fba48-7441-0410-8d5c-f397f7ceaa6c
  • Loading branch information
kzu.net committed Aug 2, 2009
1 parent df4bffc commit e7fd267
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Moq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@
<ErrorReport>prompt</ErrorReport>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup>
<PropertyGroup>
<MergeReferences>true</MergeReferences>
</PropertyGroup>
<ItemGroup>
<Reference Include="Castle.Core, Version=1.0.3.0, Culture=neutral, PublicKeyToken=407dd0808d44fbdc, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -186,7 +189,7 @@
-->
<!-- TODO: create automatic drop project -->
<!--<Import Project="$(ToolsDir)\MSBuild.Community.Tasks.Targets" />-->
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release' ">
<Target Name="AfterBuild" Condition=" '$(Configuration)' == 'Release' and '$(MergeReferences)' == 'true' ">
<Exec Command="&quot;$(MSBuildProjectPath)..\Tools\Ilmerge.exe&quot; /internalize:&quot;$(MSBuildProjectPath)ilmerge.exclude&quot; /ndebug /keyfile:$(AssemblyOriginatorKeyFile) /out:@(MainAssembly) &quot;@(IntermediateAssembly)&quot; @(ReferenceCopyLocalPaths->'&quot;%(FullPath)&quot;', ' ')" />
<Delete Files="@(ReferenceCopyLocalPaths->'$(OutDir)%(DestinationSubDirectory)%(Filename)%(Extension)')" />
<Delete Files="$(OutDir)Moq.dll.CodeAnalysisLog.xml" ContinueOnError="true" />
Expand Down

0 comments on commit e7fd267

Please sign in to comment.