简体   繁体   English

Wix 资源收集工具“Heat”。 如何收集具有动态名称的文件,例如在构建时生成的 Microsoft 运行时文件

[英]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.

相关问题 在 HEAT 收集 WIX 安装程序的注册表文件期间保留属性名称 - Keep Property names during HEAT harvesting of registry files for WIX installer 使用HeatDirectory从wix中的多个目录中获取文件 - Harvest files from multiple directories in wix with HeatDirectory 如何合并多个pdf文件(在运行时生成)? - How to merge multiple pdf files (generated in run time)? 资源文件如何命名? - Resource Files how to name them? 如何在卸载时通过Wix删除生成的文件夹和文件? - How can I delete generated folders and files via Wix on uninstall? Wix Majorupgrade并在卸载时保留动态生成的文件 - Wix Majorupgrade and keep dynamically generated files on uninstall 您如何“构建”一个包含所有资源文件(如照片)的exe? exe可以放在网页上吗? - How do you “Build” an exe that includes all the resource files like pics? Can exe be put on a web page? 仅C#动态类名称->在运行时生成 - C# Dynamic Class Name Only --> Generated at Run-Time 监视/跟踪给定名称模式/创建时间的日志文件的工具 - Tool to Monitor/Tail Log Files given Name pattern/Time of creation Wix - 从安装目录安装后如何运行 exe 文件? - Wix - How to run exe files after installation from installed directory?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM