我有一个 C# 应用程序,它的构建目标是 x86 或 x64。构建输出是(例如)ProjectDir/bin/x86|x64/Debug|Release/*
在我的*.wxs
文件中,我定义了以下变量
<?define AppTargetPath = "$(var.MyApp.TargetPath)" ?>
这指向ProjectDir/bin/Debug|Release/app.exe
如果我构建安装程序,它会失败,因为它找不到我的应用程序 exe
<File Id="AppExe" Source="$(var.AppTargetPath)" KeyPath="yes"/>
如果我查看使用项目引用和变量站点(http://wixtoolset.org/documentation/manual/v3/votive/votive_project_references.html),我找不到另一个变量。