WiX:如何使用到SolutionDir的相对路径 [英] WiX: How to use relative path to SolutionDir
问题描述
我有2个包含解决方案的文件夹:
I have 2 folders with solutions:
MyNETProject(.NET项目) MyWiXInstaller(WiXProject)
MyNETProject (NET project) MyWiXInstaller (WiXProject)
我的安装程序需要从MyNETProject \ bin \ Release获取文件并将其打包到安装程序中. 如何使用SoultionDir变量在WiX中设置NET项目的路径? 我已经尝试过这种方式:
My installer needs to get files from MyNETProject\bin\Release and to pack them to installer. How I can set path to NET project in WiX using SoultionDir variable? I have tried this way:
$(var.SolutionDir)..\MyNETProject\bin\Release
但是它不起作用.
推荐答案
确保已从wixproj中添加了对项目的引用,然后可以使用以下内容:
Make sure you have added a reference to your project from your wixproj, then you can use the following:
$(var.MyProject.TargetDir)
您可以在wix工具集网站上了解更多相关信息:使用项目引用和变量
You can read more about it on the wix toolset site: Using Project References and Variables
这篇关于WiX:如何使用到SolutionDir的相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!