HighTechTalks DotNet Forums  

MSBuild rebuild produces different size assembly compared when re-

Visual Studio.net (General) microsoft.public.vsnet.general


Discuss MSBuild rebuild produces different size assembly compared when re- in the Visual Studio.net (General) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Naeem
 
Posts: n/a

Default 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

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.