获取 WIX 以在项目中包含引用

编程入门 行业动态 更新时间:2024-10-27 08:30:40
本文介绍了获取 WIX 以在项目中包含引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我对 WiX 和一般的自定义安装程序完全陌生,所以我对问题的主题深表歉意!

I'm completely new to WiX and setting up custom installers in general, so I apologise for the topic of the question!

我有一个内部业务应用程序(日记),它构建和运行良好,所以我按照教程/官方文档添加 WiX 项目并引用日记的 csproj.

I have a internal business application (a diary), which builds and works well, so I followed tutorials/official documentation as to adding the WiX project and referencing the Diary's csproj to it.

在构建并运行这个最基本版本的 WiX 安装程序后,输出目录有一个单独的 exe 文件,在加载后会崩溃,并出现文件未找到异常.

After then building and running this most basic version of a WiX installer, the output directory has a lone exe file, which crashes moments after loading with a File Not Found Exception.

我的猜测是它没有内置在 Crystal Report 或 NLog 中,这两者都在我的 CSProj 中被引用.

My guess is that it has not built in either Crystal Report or NLog, both of which are referenced in my CSProj.

我的问题是,如何让 WIX 包含并构建对输出的那些项目引用???

My question is this, how do I get WIX to include and build those project references to the output???

非常感谢任何帮助!/安东尼

Any help is greatly appreciated! /Antony

推荐答案

与旧版 Visual Studio 中的(现已失效)安装项目项目不同,WiX 不进行自动引用检测.您必须手动将每个引用的项目添加到 WiX 项目,就像在主项目中所做的一样.

Unlike the (now defunct) Setup Project project in older versions of Visual Studio, WiX does not do automatic reference detection. You'll have to add each referenced project to the WiX project manually, just as you did for the main project.

这篇关于获取 WIX 以在项目中包含引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-04-25 11:26:50,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1115340.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目   WIX

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!