MSBuild rebuild produces different size assembly compared when re- -
07-02-2009
, 10:37 AM
Hi,
I have been tasked with automating our build procedure and have chosen to
use MSBuild. In doing so I compared a build of our solution with msbuild with
a build from visual studio and noticed the assembly sizes were differnet by
about 5-10k.
Here is my MSBuild file:
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Publish"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003"
ToolsVersion="3.5">
<ItemGroup>
<ProjectReferences Include="C:\KE\main.br\KE - MAIN.sln" />
</ItemGroup>
<PropertyGroup>
<BuildRoot>C:\Inetpub\wwwroot\KE_Build\</BuildRoot>
</PropertyGroup>
<Target Name="RemoveFolder">
<RemoveDir Directories="$(BuildRoot)" />
</Target>
<Target Name="BuildOtherProjects">
<MSBuild Projects="@(ProjectReferences)" Targets="ReBuild"
Properties="Configuration=CLIENT_P" />
</Target>
<Target Name="Publish" DependsOnTargets="BuildOtherProjects">
<MSBuild Projects="@(ProjectReferences)"
Properties="OutputPath=$(BuildRoot)bin;Configurati on=CLIENT_P" />
</Target>
</Project>
As you can see, ive chosen the target of rebuild. I did the exact same thing
in visual studio. I opened the solution file and then right-click rebuild.
I'm slighly worried about these differences and would like to resolve this
before I can continue. Would anyone happen to have any ideas as to why this
is happening.
Thanks in advance,
Naeem |