WiX:如何使用到SolutionDir的相对路径 [英] WiX: How to use relative path to SolutionDir

查看:139
本文介绍了WiX:如何使用到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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆