[英]Wix resource harvesting tool "Heat". How to harvest files with dynamic name like Microsoft run time files generated on build
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.我有一个非常简单的问题,但由于 Wix 的限制,我似乎无法轻松找到答案,还要提到我对 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.问题是,如标题所述,我无法生成在构建时生成的热收集文件,并且这些文件的名称根据操作系统运行时(确切地说是 .Net Core)进行更改,然后手动转到 product.wix 文件并更改几个资源的名称。
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.版本 4.6.28207.03.dll 是动态生成的。
You can have a try harvesting the outputs of your vs project , since the dll files are the output of your project.您可以尝试收集vs 项目的输出,因为 dll 文件是项目的输出。
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.您还可以尝试在主应用程序项目上添加构建后事件,将这些文件复制到一个特殊位置,并让 Heat.exe 从那里读取它们。 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.在 azure devops 管道中,您可以尝试添加复制文件任务,将这些文件复制到 Heat 可以读取的特定位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.