[wix-users] BeforeBuild vs. PreBuildEvent

Farrukh Waheed farrukh1 at gmail.com
Mon Nov 16 09:55:47 PST 2015


Found a good answer here:
http://stackoverflow.com/a/5927512

On 16 November 2015 at 20:32, Phill Hogland <phill.hogland at rimage.com>
wrote:

> I don't think that the later will even work in MSBuild. 'some tasks' needs
> to be under a MSBuild 'Target' and not a child of a PropertyGroup.  However
> a PropertyGroup can be a child of Target.  I think BeforeBuild is VS
> specific Target, however you can confirm all of this by enabling Verbose
> logging of MSBuild output prior to build your project. In VS use
> Tools\Options\Projects and Solutions\Buld and Run to set the output
> verbosity.
>
>
> -----Original Message-----
> From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
> Of Brian Enderle
> Sent: Monday, November 16, 2015 9:17 AM
> To: WiX Users <wix-users at lists.wixtoolset.org>
> Subject: [wix-users] BeforeBuild vs. PreBuildEvent
>
> Can someone explain the difference(s) between the following?  Do they
> actually run at different times or provide different funcitons?
>
>
> <Target Name="BeforeBuild">some tasks</Target>
>
> and
>
>   <PropertyGroup>
>     <PreBuildEvent>
>       some tasks
>     </PreBuildEvent>
>   <PropertyGroup>
>
>
> TIA
>
> Brian
>
> If you can't explain it simply, you don't understand it well enough.  -
> Albert Einstein
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>


More information about the wix-users mailing list