[wix-devs] Regarding MSBuild Macros

Edwin Castro egcastr at gmail.com
Thu Apr 14 12:17:51 PDT 2022


Kaveesh,

This question is likely not appropriate for this mailing list.

That said, if you can provide a minimal reproduction sample online
somewhere, perhaps GitHub or StackOverflow, I'd be happy to assist you on
that other platform once I better understand your problem.

--
Edwin G. Castro


On Thu, Apr 14, 2022 at 2:53 AM Kaveesh Dashora via wix-devs <
wix-devs at lists.wixtoolset.org> wrote:

> Hi Devs,
>
> I am writing here in regards to a NON WIX question albeit a MSBuild
> question. I see that you guys have implemented Pre and Post Build
> events for WiX. And have a question regarding the same.
>
> I am working on adding PreBuild and PostBuild Events for my custom
> project type in VIsual Studio.
> WIth that I am also working on adding Macros.
>
> When I try to read the PreBuild and PostBuild strings containing my
> custom Macros. They are automatically evaluated to empty strings. I
> believe that is happening because I have not defined my custom Macros
> in my msbuild targets. I tried resolving this by adding a msbuild task
> which runs before the PreBuild Event, but to no avail. The evaluated
> strings were still coming empty.
>
> I am currently having a hard time figuring out where to place my
> msbuild which adds my custom macros with their values to MSBuild so
> that they get evaluated while MSBuild reads the Pre and Post Build
> Events from the project file.
>
> --
> Kaveesh
> ____________________________________________________________________
> WiX Toolset Developer Mailing List provided by FireGiant
> http://www.firegiant.com/
>



More information about the wix-devs mailing list