msbuild - Building with a linked file in WIX -
i’ve project targeting wix 3.7, using vs2013 vso repository. when add files project using “add link”, build fails “cannot find file”. e.g. in wxs file, have:
<icon id="arpicon" sourcefile="images\favicon.ico"/> the source file in folder outside of project, , checked vso. when build, error in output includes:
… error lght0103: system cannot find file 'images\favicon.ico'.
if file included directly (i.e. not link), no problem.
wix tips & tricks seems suggest wix understands linked files. ideas on missing?
i've figured out if change sourcefile attribute real file location rather link appears in project structure, build. so, wixproj line reading as
<content include="..\..\_cobranded common\images\favicon.ico"> <link>images\favicon.ico</link> </content> and matching wxs line as
<icon id="arpicon" sourcefile="..\..\_cobranded common\images\favicon.ico"/> it builds.
would interested hear if there's simpler or more intuitive solution.
Comments
Post a Comment