0
votes

I have really simple issue but seems I can't find answer easily due Wix restrictions, also to mention I am pretty new to Wix.

Problem is, as described in title, I can't make heat harvest couple of files that are generated on build and name of those files are changed based on OS run time (precisely .Net Core) other then going manually to product.wix file and changing name of couple of resources.

File example

\obj\Release\netcoreapp2.2\win-x64\PubTmp\Out\mscordaccore_amd64_amd64_4.6.28207.03.dll".

Version 4.6.28207.03.dll is dynamical generated.

1

1 Answers

0
votes

You can have a try harvesting the outputs of your vs project, since the dll files are the output of your project.

heat project "MyProject.csproj" -pog:Binaries -ag -template:fragment -out project.wxs

And you can also try adding a post-build event on your main application project to copy those files in a special location and have the Heat.exe read them from there. You can refer to this blog here.

In azure devops pipeline, You can try adding a copy file task to copy those files to a specific location where Heat can read from.